Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates #19

Merged
merged 8 commits into from
Feb 21, 2024
Merged

Updates #19

merged 8 commits into from
Feb 21, 2024

Conversation

kthyng
Copy link
Member

@kthyng kthyng commented Feb 21, 2024

  • Now initialize all class attributes with None and removed usage of hasattr which simplifies and clarifies some code.
  • Improved handling of start_time, end_time, duration, and steps in manager.py which fixed a bug in which users couldn't input start_time and have the simulation run successfully.
  • simplified handling of horizontal_diffusivity in opendrift model.
  • user can change end_time, duration, and steps and have the others update accordingly. Tests added to check this.
  • changed known model "CIOFS_now" to "CIOFSOP" to avoid upper/lower issues and include "OP" for "operational".
  • many more tests and improved behavior for attribute checks and updates

* removed hasattr's by initializing class attributes to None
* simplifying some of the logic (still in the works)
* to tests due to changes in steps initialized as None now instead of 3
* streamlined horizontal_diffusivity handling and had to update tests accordingly
* rearranged order of initialization a little
for end_time, steps, and duration.
end_time, duration, and steps and have the others update accordingly.
@kthyng
Copy link
Member Author

kthyng commented Feb 21, 2024

I am going to merge this since it won't pass tests until a new version of opendrift is released.

@kthyng kthyng merged commit 3ae1faf into main Feb 21, 2024
2 of 11 checks passed
@kthyng kthyng deleted the updates branch February 21, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant