Skip to content

Commit

Permalink
fix class ref
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderthclark committed Jun 29, 2024
1 parent a2fa629 commit eaa5cf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freeride/curves.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def vertical_shift(self, delta, inplace=True):
if inplace:
self.__init__(*coef, symbol=self.symbol)
else:
return cls(*coef, symbol=self.symbol)
return self.__class__(*coef, symbol=self.symbol)

def horizontal_shift(self, delta, inplace=True):
"""
Expand All @@ -290,7 +290,7 @@ def horizontal_shift(self, delta, inplace=True):
if inplace:
self.__init__(*coef, symbol=self.symbol)
else:
return cls(*coef, symbol=self.symbol)
return self.__class__(*coef, symbol=self.symbol)

def plot(self, ax=None, textbook_style=True, max_q=100,
label=True, **kwargs):
Expand Down

0 comments on commit eaa5cf1

Please sign in to comment.