Skip to content

Commit 2569d09

Browse files
committed
Fix code style issues with Black
1 parent a4bda8d commit 2569d09

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

rocketpy/mathutils/function.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1867,7 +1867,9 @@ def __mul__(self, other):
18671867
interpolation = self.__interpolation__
18681868
extrapolation = self.__extrapolation__
18691869
# Create new Function object
1870-
return Function(source, inputs, outputs, interpolation, extrapolation)
1870+
return Function(
1871+
source, inputs, outputs, interpolation, extrapolation
1872+
)
18711873
else:
18721874
return Function(lambda x: (self.get_value(x) * other))
18731875
# Or if it is just a callable
@@ -1954,7 +1956,9 @@ def __truediv__(self, other):
19541956
interpolation = self.__interpolation__
19551957
extrapolation = self.__extrapolation__
19561958
# Create new Function object
1957-
return Function(source, inputs, outputs, interpolation, extrapolation)
1959+
return Function(
1960+
source, inputs, outputs, interpolation, extrapolation
1961+
)
19581962
else:
19591963
return Function(lambda x: (self.get_value_opt(x) / other))
19601964
# Or if it is just a callable
@@ -2059,7 +2063,9 @@ def __pow__(self, other):
20592063
interpolation = self.__interpolation__
20602064
extrapolation = self.__extrapolation__
20612065
# Create new Function object
2062-
return Function(source, inputs, outputs, interpolation, extrapolation)
2066+
return Function(
2067+
source, inputs, outputs, interpolation, extrapolation
2068+
)
20632069
else:
20642070
return Function(lambda x: (self.get_value(x) ** other))
20652071
# Or if it is just a callable
@@ -2335,7 +2341,9 @@ def derivative_function(self):
23352341
outputs = f"d({self.__outputs__[0]})/d({inputs[0]})"
23362342

23372343
# Create new Function object
2338-
return Function(source, inputs, outputs, self.__interpolation__, self.__extrapolation__)
2344+
return Function(
2345+
source, inputs, outputs, self.__interpolation__, self.__extrapolation__
2346+
)
23392347

23402348
def integral_function(self, lower=None, upper=None, datapoints=100):
23412349
"""Returns a Function object representing the integral of the Function

0 commit comments

Comments
 (0)