Skip to content

Commit

Permalink
MNT: post conflict solve refactors.
Browse files Browse the repository at this point in the history
  • Loading branch information
phmbressan committed Nov 17, 2023
1 parent edd1e05 commit 4508d42
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions rocketpy/mathutils/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,22 @@ def __init__(
-------
None
"""
# Set input and output
if inputs is None:
inputs = ["Scalar"]
if outputs is None:
outputs = ["Scalar"]

inputs, outputs, interpolation, extrapolation = self._check_user_input(
source, inputs, outputs, interpolation, extrapolation
)

# initialize variables to avoid errors when being called by other methods
self.get_value_opt = None
self.__polynomial_coefficients__ = None
self.__akima_coefficients__ = None
self.__spline_coefficients__ = None

# Set input and output
if inputs is None:
inputs = ["Scalar"]
if outputs is None:
outputs = ["Scalar"]

# store variables
self.set_inputs(inputs)
self.set_outputs(outputs)
Expand Down

0 comments on commit 4508d42

Please sign in to comment.