Skip to content

Commit

Permalink
BUG: Correctly update atmospheric conditions after changing date and …
Browse files Browse the repository at this point in the history
…location

add location
  • Loading branch information
WilliamArmst committed Dec 2, 2024
1 parent d93666a commit 396b122
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions rocketpy/environment/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -726,7 +726,7 @@ def set_location(self, latitude, longitude):
"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_gravity_model(self, gravity=None):
Expand Down

0 comments on commit 396b122

Please sign in to comment.