Skip to content

Commit 2b51d10

Browse files
BUG: fix custom atmosphere max_expected_height
1 parent fea6bfc commit 2b51d10

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
@@ -418,7 +418,7 @@ def __initialize_elevation_and_max_height(self, elevation, max_expected_height):
418418
"""Saves the elevation and the maximum expected height."""
419419
self.elevation = elevation
420420
self.set_elevation(elevation)
421-
self._max_expected_height = max_expected_height
421+
self.max_expected_height = max_expected_height
422422

423423
def __initialize_date(self, date, timezone):
424424
"""Saves the date and configure timezone."""
@@ -1390,7 +1390,7 @@ def process_custom_atmosphere(
13901390
None
13911391
"""
13921392
# Initialize an estimate of the maximum expected atmospheric model height
1393-
max_expected_height = 1000
1393+
max_expected_height = self.max_expected_height or 1000
13941394

13951395
# Save pressure profile
13961396
if pressure is None:

0 commit comments

Comments
 (0)