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

Thermo dataset from evaluator #67

Merged
merged 5 commits into from
Jun 3, 2024

Conversation

jthorton
Copy link
Collaborator

@jthorton jthorton commented May 29, 2024

Description

Provide a brief description of the PR's purpose here.
This PR provides a convenience function to convert an OpenFF-Evaluator PhysicalPropertyDataSet to a Descent thermo dataset.

Status

  • Ready to go

SimonBoothroyd
SimonBoothroyd previously approved these changes Jun 3, 2024
Copy link
Owner

@SimonBoothroyd SimonBoothroyd left a comment

Choose a reason for hiding this comment

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

awesome, thanks @jthorton !!

try:
prop_type = _evaluator_to_prop[phys_prop["@type"]]
except KeyError:
raise KeyError(f"{phys_prop['@type']} not currently supported.") from None
Copy link
Owner

Choose a reason for hiding this comment

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

I've not seen from None before, looks cool!

descent/targets/thermo.py Outdated Show resolved Hide resolved
@SimonBoothroyd SimonBoothroyd merged commit 6d4b216 into SimonBoothroyd:main Jun 3, 2024
1 check passed
@jthorton jthorton deleted the evaluator_datasets branch June 3, 2024 14:17
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