Skip to content

Commit 9f573ba

Browse files
committed
BUG: LSODA solver not being detected correctly.
1 parent 4df0b38 commit 9f573ba

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
@@ -37,7 +37,7 @@ Attention: The newest changes should be on top -->
3737

3838

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

4242
## v1.9.0 - 2025-03-24
4343

rocketpy/simulation/flight.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,14 +1267,13 @@ def __set_ode_solver(self, solver):
12671267
else:
12681268
try:
12691269
self._solver = ODE_SOLVER_MAP[solver]
1270+
self.__is_lsoda = issubclass(self._solver, LSODA)
12701271
except KeyError as e: # pragma: no cover
12711272
raise ValueError(
12721273
f"Invalid ``ode_solver`` input: {solver}. "
12731274
f"Available options are: {', '.join(ODE_SOLVER_MAP.keys())}"
12741275
) from e
12751276

1276-
self.__is_lsoda = hasattr(self._solver, "_lsoda_solver")
1277-
12781277
@cached_property
12791278
def effective_1rl(self):
12801279
"""Original rail length minus the distance measured from nozzle exit

0 commit comments

Comments
 (0)