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

add RH_ice to moist env thermodynamic state #1496

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

slayoo
Copy link
Member

@slayoo slayoo commented Jan 8, 2025

No description provided.

@slayoo slayoo requested a review from tluettm January 8, 2025 23:24
Copy link

codecov bot commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.22%. Comparing base (824a94d) to head (3326280).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1496   +/-   ##
=======================================
  Coverage   85.22%   85.22%           
=======================================
  Files         376      376           
  Lines        9266     9267    +1     
=======================================
+ Hits         7897     7898    +1     
  Misses       1369     1369           

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

Copy link
Collaborator

@tluettm tluettm left a comment

Choose a reason for hiding this comment

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

Is there a reason why the unit test checks for subsaturation specifically?

I also added a second test that checks for the reverse: 1 > RHi > RH for T < 273.16K:
See https://github.com/tluettm/PySDM -> test_rhi

I'm not sure if that is really necessary though. I also don't know if there is a better way of linking my change without pushing the commit to your branch.

…tions, and added assert to ensure these are indeed the conditions
@slayoo
Copy link
Member Author

slayoo commented Jan 11, 2025

Thank you, @tluettm

Is there a reason why the unit test checks for subsaturation specifically?

Good point. Supersaturated cases added in 3326280

I also added a second test that checks for the reverse: 1 > RHi > RH for T < 273.16K: See https://github.com/tluettm/PySDM -> test_rhi

Thank you! Merged in 3326280

I'm not sure if that is really necessary though. I also don't know if there is a better way of linking my change without pushing the commit to your branch.

Commit on a branch is perfect, optionally we could also setup a PR from tluettm:test_rhi to slayoo:RHi. Committing to the PR branch here (slayoo:RHi) is also OK.

@slayoo
Copy link
Member Author

slayoo commented Jan 11, 2025

@tluettm, please merge if the code seems OK and helps

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.

2 participants