Skip to content

Commit ed2a6a2

Browse files
authored
Merge pull request #743 from WilliamArmst/develop
BUG: Correctly update atmospheric conditions after changing date and location
2 parents d93666a + cf98bb3 commit ed2a6a2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Attention: The newest changes should be on top -->
3939

4040
### Fixed
4141

42+
- BUG: Correctly update atmospheric conditions after changing date and location [#743](https://github.com/RocketPy-Team/RocketPy/pull/743)
43+
4244

4345
## [v1.7.0] - 2024-11-30
4446

rocketpy/environment/environment.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,9 @@ def set_date(self, date, timezone="UTC"):
688688
"Ensemble",
689689
]:
690690
self.set_atmospheric_model(
691-
self.atmospheric_model_file, self.atmospheric_model_dict
691+
type=self.atmospheric_model_type,
692+
file=self.atmospheric_model_file,
693+
dictionary=self.atmospheric_model_dict,
692694
)
693695

694696
def set_location(self, latitude, longitude):
@@ -726,7 +728,9 @@ def set_location(self, latitude, longitude):
726728
"Ensemble",
727729
]:
728730
self.set_atmospheric_model(
729-
self.atmospheric_model_file, self.atmospheric_model_dict
731+
type=self.atmospheric_model_type,
732+
file=self.atmospheric_model_file,
733+
dictionary=self.atmospheric_model_dict,
730734
)
731735

732736
def set_gravity_model(self, gravity=None):

0 commit comments

Comments
 (0)