Skip to content

EPPT_3209_total_precipitable_water_assurance to master#2350

Open
mo-DavidJohnJohnston wants to merge 9 commits intomasterfrom
EPPT_3209_total_precipitable_water_assurance
Open

EPPT_3209_total_precipitable_water_assurance to master#2350
mo-DavidJohnJohnston wants to merge 9 commits intomasterfrom
EPPT_3209_total_precipitable_water_assurance

Conversation

@mo-DavidJohnJohnston
Copy link
Copy Markdown
Contributor

@mo-DavidJohnJohnston mo-DavidJohnJohnston commented Apr 1, 2026

Addresses JIRA ticket EPPT-3209

Fixed bug causing Total Precipitable Water numbers to be far too high.

Testing:

  • Ran tests and all passed (some ignored) with 1 failure

improver_tests/cli/test_init.py:391 (test_import_cli)
def test_import_cli():

  • Added new tests for the new feature(s)

CLA

  • If a new developer, signed up to CLA

Comment thread improver/psychrometric_calculations/psychrometric_calculations.py Outdated
…one.

thanks to Stephen Moseley for telling me about this.
Copy link
Copy Markdown
Contributor

@katherinetomkins-mo katherinetomkins-mo left a comment

Choose a reason for hiding this comment

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

Unit tests pass and tests and fix address the issue seen

Copy link
Copy Markdown
Member

@MoseleyS MoseleyS left a comment

Choose a reason for hiding this comment

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

While I think the code will work, there are some edge cases that could break it.

Comment thread improver/psychrometric_calculations/psychrometric_calculations.py Outdated
Comment thread improver/psychrometric_calculations/psychrometric_calculations.py Outdated
Comment thread improver/psychrometric_calculations/psychrometric_calculations.py Outdated
Comment thread improver/psychrometric_calculations/psychrometric_calculations.py
Comment thread improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py Outdated
Comment thread improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py Outdated
Comment thread improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py Outdated
Comment thread improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py Outdated
…one.

thanks to Stephen Moseley for telling me about this.
Copy link
Copy Markdown
Member

@MoseleyS MoseleyS left a comment

Choose a reason for hiding this comment

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

I've spotted a few more things to tweak in the unit tests.

Some of them were easier to put in as a PR to your PR (see #2353).

Comment thread improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py Outdated
Comment thread improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py Outdated
Comment thread improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py Outdated
Comment thread improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py Outdated
Comment thread improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py Outdated
Comment thread improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py Outdated
Comment thread improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py Outdated
Comment thread improver/psychrometric_calculations/psychrometric_calculations.py Outdated
Comment thread improver/psychrometric_calculations/psychrometric_calculations.py Outdated
Comment thread improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py Outdated
Comment thread improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py Outdated
Comment thread improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py Outdated
Copy link
Copy Markdown
Contributor

@robertplatt-mo robertplatt-mo left a comment

Choose a reason for hiding this comment

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

@mo-DavidJohnJohnston Thanks this is looking good now. Still a couple of nits but it's basically there

Comment thread improver/psychrometric_calculations/psychrometric_calculations.py
Comment thread improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py Outdated
Comment thread improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py Outdated
Comment thread improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py Outdated
Comment thread improver_tests/psychrometric_calculations/test_HumidityMixingRatio.py Outdated
Comment thread improver/psychrometric_calculations/psychrometric_calculations.py Outdated
Copy link
Copy Markdown
Contributor

@robertplatt-mo robertplatt-mo left a comment

Choose a reason for hiding this comment

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

You were still missing one comment on the docstrings so I went ahead and applied the suggestion rather than continue back and forth over something so nitty. Approved.

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.

4 participants