Skip to content

Commit 5093a70

Browse files
BUG: fix custom atmosphere max_expected_height
1 parent e995de6 commit 5093a70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rocketpy/environment/environment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def __initialize_elevation_and_max_height(self, elevation, max_expected_height):
419419
"""Saves the elevation and the maximum expected height."""
420420
self.elevation = elevation
421421
self.set_elevation(elevation)
422-
self._max_expected_height = max_expected_height
422+
self.max_expected_height = max_expected_height
423423

424424
def __initialize_date(self, date, timezone):
425425
"""Saves the date and configure timezone."""
@@ -1411,7 +1411,7 @@ def process_custom_atmosphere(
14111411
None
14121412
"""
14131413
# Initialize an estimate of the maximum expected atmospheric model height
1414-
max_expected_height = 1000
1414+
max_expected_height = self.max_expected_height or 1000
14151415

14161416
# Save pressure profile
14171417
if pressure is None:

0 commit comments

Comments
 (0)