Skip to content

831 calculation of net radiation needs to find a place#866

Merged
vgro merged 5 commits intodevelopfrom
831-calculation-of-net-radiation-needs-to-find-a-place
May 20, 2025
Merged

831 calculation of net radiation needs to find a place#866
vgro merged 5 commits intodevelopfrom
831-calculation-of-net-radiation-needs-to-find-a-place

Conversation

@vgro
Copy link
Copy Markdown
Collaborator

@vgro vgro commented May 19, 2025

This PR includes the calculation of net radiation in the simple abiotic model to make sure that it is always available for the hydrology model (it is now a required variable).

Fixes #831

Type of change

  • New feature (non-breaking change which adds functionality)
  • Optimization (back-end change that speeds up the code)
  • Bug fix (non-breaking change which fixes an issue)

Key checklist

  • Make sure you've run the pre-commit checks: $ pre-commit run -a
  • All tests pass: $ poetry run pytest

Further checks

  • Code is commented, particularly in hard-to-understand areas
  • Tests added that prove fix is effective or that feature works
  • Relevant documentation reviewed and updated

@vgro vgro linked an issue May 19, 2025 that may be closed by this pull request
@vgro vgro requested review from davidorme and sallymatson May 19, 2025 13:04
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.78%. Comparing base (2aa2bdd) to head (2a9ac65).
Report is 5 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #866      +/-   ##
===========================================
+ Coverage    94.76%   94.78%   +0.02%     
===========================================
  Files           75       75              
  Lines         5562     5584      +22     
===========================================
+ Hits          5271     5293      +22     
  Misses         291      291              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Collaborator

@davidorme davidorme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - I'm not convinced that the leaf_albedo constant belongs in abiotic constants, but that's part of a bigger picture issue with the constants 😱

@vgro
Copy link
Copy Markdown
Collaborator Author

vgro commented May 20, 2025

LGTM - I'm not convinced that the leaf_albedo constant belongs in abiotic constants, but that's part of a bigger picture issue with the constants 😱

Agreed. There are a few plant traits that I currently have as constants in the abiotic/hydrology model which I hope will be variables at some point. I also took a note to cross-check with the plant model at some point what is duplicated, we might want to move some constants around, but like you say, this brings us back to the old constants issue...

@vgro vgro merged commit 55892b0 into develop May 20, 2025
16 checks passed
@vgro vgro deleted the 831-calculation-of-net-radiation-needs-to-find-a-place branch May 20, 2025 07:50
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.

calculation of net radiation needs to find a place

3 participants