diff --git a/CHANGELOG.md b/CHANGELOG.md index bfd5501ae..42dbd3b1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,8 @@ Attention: The newest changes should be on top --> ### Fixed +- BUG: Correctly update atmospheric conditions after changing date and location [#743](https://github.com/RocketPy-Team/RocketPy/pull/743) + ## [v1.7.0] - 2024-11-30 diff --git a/rocketpy/environment/environment.py b/rocketpy/environment/environment.py index 394275763..dbabeee78 100644 --- a/rocketpy/environment/environment.py +++ b/rocketpy/environment/environment.py @@ -688,7 +688,9 @@ def set_date(self, date, timezone="UTC"): "Ensemble", ]: self.set_atmospheric_model( - self.atmospheric_model_file, self.atmospheric_model_dict + type=self.atmospheric_model_type, + file=self.atmospheric_model_file, + dictionary=self.atmospheric_model_dict, ) def set_location(self, latitude, longitude): @@ -726,7 +728,9 @@ def set_location(self, latitude, longitude): "Ensemble", ]: self.set_atmospheric_model( - self.atmospheric_model_file, self.atmospheric_model_dict + type=self.atmospheric_model_type, + file=self.atmospheric_model_file, + dictionary=self.atmospheric_model_dict, ) def set_gravity_model(self, gravity=None):