Skip to content

Add back enthalpy of vaporization and mixing estimation - #219

Draft
mattwthompson wants to merge 20 commits into
mainfrom
more-targets-in-mvp
Draft

mattwthompson wants to merge 20 commits into
mainfrom
more-targets-in-mvp

Conversation

@mattwthompson

@mattwthompson mattwthompson commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Description

  • Add back enthalpy of vaporization calculation
  • Add back enthalpy of mixing calculation

Checklist

  • Add tests
  • Lint
  • Update docstrings
  • AI disclosure - some combination of Copilot and Claude was used

@mattwthompson mattwthompson changed the title More targets in mvp Add back enthalpy of vaporization and mixing estimation Nov 10, 2026
Comment thread tyff/targets/new_thermo.py Resolved
@mattwthompson
mattwthompson added this pull request to stack #221 November 10, 2026 17:28
@codecov-commenter

codecov-commenter commented Nov 10, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 5.63380% with 67 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.56%. Comparing base (32badc2) to head (5a9ec9f).

Files with missing lines Patch % Lines
tyff/targets/new_thermo.py 2.98% 65 Missing ⚠️
tyff/compute/workflow.py 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #219      +/-   ##
==========================================
- Coverage   82.15%   81.56%   -0.59%     
==========================================
  Files          59       59              
  Lines        5323     5386      +63     
==========================================
+ Hits         4373     4393      +20     
- Misses        950      993      +43     

☔ View full report in Codecov by Harness.
📢 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.

For example: OpenCL is not available on most Linux runners, so it should be
skipped over when falling back through CUDA -> ... -> CPU platforms
from tyff.mm._ops import RemoteEnsembleAverage
from tyff.targets.thermo import DataEntry

KCAL_TO_KJ = 4.184

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Any reason for this if you're using openff.units anyway?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm happy to define it with the units package, I chose to use implicit floats here because

  • The tensor/jacobian math that makes the observables variable generated by load_remote_observables, also much or all of tyff.mm._opys, uses floats without unit tags
  • that's how the math is done in compute_properties

In this case, I mostly left it as a hard-coded float because this conversion factor is exactly 4.184 and there isn't any rounding

@mattwthompson
mattwthompson removed this pull request from stack #221 November 11, 2026 21:35
@mattwthompson
mattwthompson changed the base branch from merge-thermo-energy to main November 11, 2026 21:36
@mattwthompson

Copy link
Copy Markdown
Member Author

We are being asked to believe that this outage only affected 3% of pull requests https://www.githubstatus.com/incidents/1xzmt89vv61l

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.

3 participants