Skip to content

Commit dc582de

Browse files
committed
BUG: LSODA solver not being detected correctly.
1 parent c438427 commit dc582de

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Attention: The newest changes should be on top -->
4242

4343

4444
### Fixed
45-
45+
- BUG: Non-overshootable simulations error on time parsing. [#807](https://github.com/RocketPy-Team/RocketPy/pull/807)
4646

4747
## v1.9.0 - 2025-03-24
4848

rocketpy/simulation/flight.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,14 +1272,13 @@ def __set_ode_solver(self, solver):
12721272
else:
12731273
try:
12741274
self._solver = ODE_SOLVER_MAP[solver]
1275+
self.__is_lsoda = issubclass(self._solver, LSODA)
12751276
except KeyError as e: # pragma: no cover
12761277
raise ValueError(
12771278
f"Invalid ``ode_solver`` input: {solver}. "
12781279
f"Available options are: {', '.join(ODE_SOLVER_MAP.keys())}"
12791280
) from e
12801281

1281-
self.__is_lsoda = hasattr(self._solver, "_lsoda_solver")
1282-
12831282
@cached_property
12841283
def effective_1rl(self):
12851284
"""Original rail length minus the distance measured from nozzle exit

0 commit comments

Comments
 (0)