From bd57ec2645300f367ac98dc88b879030537bf248 Mon Sep 17 00:00:00 2001 From: William Armstrong Date: Mon, 2 Dec 2024 11:32:32 -0700 Subject: [PATCH] BUG: Correctly update atmospheric conditions after changing date --- CHANGELOG.md | 2 ++ rocketpy/environment/environment.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bfd5501ae..f861db352 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 [#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..128ace225 100644 --- a/rocketpy/environment/environment.py +++ b/rocketpy/environment/environment.py @@ -688,7 +688,7 @@ def set_date(self, date, timezone="UTC"): "Ensemble", ]: self.set_atmospheric_model( - self.atmospheric_model_file, self.atmospheric_model_dict + self.atmospheric_model_type, self.atmospheric_model_file, self.atmospheric_model_dict ) def set_location(self, latitude, longitude):