Skip to content

Commit 1e6f8c0

Browse files
committed
Fix code style issues with Black
1 parent cbab68b commit 1e6f8c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rocketpy/Function.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ def setGetValueOpt(self):
291291
# Crete method to interpolate this info for each interpolation type
292292
if self.__interpolation__ == "spline":
293293
coeffs = self.__splineCoefficients__
294+
294295
def getValueOpt(x):
295296
xInterval = np.searchsorted(xData, x)
296297
# Interval found... interpolate... or extrapolate
@@ -315,6 +316,7 @@ def getValueOpt(x):
315316
self.getValueOpt = getValueOpt
316317

317318
elif self.__interpolation__ == "linear":
319+
318320
def getValueOpt(x):
319321
xInterval = np.searchsorted(xData, x)
320322
# Interval found... interpolate... or extrapolate
@@ -342,6 +344,7 @@ def getValueOpt(x):
342344

343345
elif self.__interpolation__ == "akima":
344346
coeffs = np.array(self.__akimaCoefficients__)
347+
345348
def getValueOpt(x):
346349
xInterval = np.searchsorted(xData, x)
347350
# Interval found... interpolate... or extrapolate
@@ -365,6 +368,7 @@ def getValueOpt(x):
365368

366369
elif self.__interpolation__ == "polynomial":
367370
coeffs = self.__polynomialCoefficients__
371+
368372
def getValueOpt(x):
369373
# Interpolate... or extrapolate
370374
if xmin <= x <= xmax:

0 commit comments

Comments
 (0)