-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/wind profiles #350
Conversation
Animal Module constants rework
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feature/new_abiotic_model #350 +/- ##
=============================================================
+ Coverage 95.79% 95.97% +0.17%
=============================================================
Files 55 56 +1
Lines 2595 2705 +110
=============================================================
+ Hits 2486 2596 +110
Misses 109 109 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noticed a couple of problems, but otherwise looks good to me!
wind_reference_height=(self.data["canopy_height"] + 10).to_numpy(), | ||
turbulence_sign=True, | ||
abiotic_constants=AbioticConsts(), | ||
core_constants=CoreConsts(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this make it impossible for the user to change the constants, because default values will always be used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yes, you're right. I copied the arguments and missed changing that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This PR adds the wind submodule to the new
abiotic
model. It is not very complex, basically just a long list of functions that in the end are called in theAbioticModel
.@TaranRallings did you make some commits to this branch or did this come from
git merge develop
? It looks like I missed an update, please ignore the animal files in the review, we can sort this out when I eventually merge in develop.The question came up about what the
required_init_vars
should contain regarding the dummy data set, please comment on #349 .Type of change
Key checklist
pre-commit
checks:$ pre-commit run -a
$ poetry run pytest
Further checks