Skip to content

Commit

Permalink
BUG: fix custom atmosphere max_expected_height
Browse files Browse the repository at this point in the history
  • Loading branch information
Gui-FernandesBR committed Oct 9, 2024
1 parent e995de6 commit 5093a70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rocketpy/environment/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def __initialize_elevation_and_max_height(self, elevation, max_expected_height):
"""Saves the elevation and the maximum expected height."""
self.elevation = elevation
self.set_elevation(elevation)
self._max_expected_height = max_expected_height
self.max_expected_height = max_expected_height

def __initialize_date(self, date, timezone):
"""Saves the date and configure timezone."""
Expand Down Expand Up @@ -1411,7 +1411,7 @@ def process_custom_atmosphere(
None
"""
# Initialize an estimate of the maximum expected atmospheric model height
max_expected_height = 1000
max_expected_height = self.max_expected_height or 1000

# Save pressure profile
if pressure is None:
Expand Down

0 comments on commit 5093a70

Please sign in to comment.