Skip to content

Commit 715338e

Browse files
committed
MNT: Correct json export environment naming.
1 parent 620f99e commit 715338e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rocketpy/environment/environment.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2763,7 +2763,7 @@ def to_dict(self, include_outputs=False):
27632763
"elevation": self.elevation,
27642764
"datum": self.datum,
27652765
"timezone": self.timezone,
2766-
"_max_expected_height": self.max_expected_height,
2766+
"max_expected_height": self.max_expected_height,
27672767
"atmospheric_model_type": self.atmospheric_model_type,
27682768
"pressure": self.pressure,
27692769
"barometric_height": self.barometric_height,
@@ -2792,7 +2792,7 @@ def from_dict(cls, data): # pylint: disable=too-many-statements
27922792
elevation=data["elevation"],
27932793
datum=data["datum"],
27942794
timezone=data["timezone"],
2795-
max_expected_height=data["_max_expected_height"],
2795+
max_expected_height=data["max_expected_height"],
27962796
)
27972797
atmospheric_model = data["atmospheric_model_type"]
27982798

@@ -2816,7 +2816,7 @@ def from_dict(cls, data): # pylint: disable=too-many-statements
28162816
env.__set_wind_direction_function(data["wind_direction"])
28172817
env.__set_wind_speed_function(data["wind_speed"])
28182818
env.elevation = data["elevation"]
2819-
env.max_expected_height = data["_max_expected_height"]
2819+
env.max_expected_height = data["max_expected_height"]
28202820

28212821
if atmospheric_model in ["windy", "forecast", "reanalysis", "ensemble"]:
28222822
env.atmospheric_model_init_date = data["atmospheric_model_init_date"]

0 commit comments

Comments
 (0)