Skip to content

Commit

Permalink
add fix for singular dyn viz
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdsharpe committed Dec 24, 2023
1 parent 247df4a commit ecbf32a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aerosandbox/dynamics/point_mass/common_point_mass.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ def draw(self,
k: interpolate.InterpolatedUnivariateSpline(
x=np.arange(len(self)),
y=v * np.ones(len(self)),
k=np.clip(len(self), 1, 3),
check_finite=True,
)
for k, v in self.state.items()
Expand All @@ -503,6 +504,7 @@ def draw(self,
k: interpolate.InterpolatedUnivariateSpline(
x=np.arange(len(self)),
y=v * np.ones(len(self)),
k=np.clip(len(self), 1, 3),
check_finite=True,
)
for k, v in self.control_variables.items()
Expand Down

0 comments on commit ecbf32a

Please sign in to comment.