-
Notifications
You must be signed in to change notification settings - Fork 108
Add support for QCSchema v2 and test on Python 3.14 #2238
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
5865da7
Test on Python 3.14
mattwthompson 834bfe9
Update RDKit constraint(s)
mattwthompson 7065593
New-ish/old-ish QCSchema compatibility
mattwthompson 43b8e18
Update test regex
mattwthompson 63326aa
Update QCEngine call
mattwthompson 4725db1
Update release history
mattwthompson c9d5184
fix releasenotes, reduce test matrix bloat
j-wags 8394273
Only return QCSchema V2 molecules
mattwthompson 72d7900
Merge remote-tracking branch 'upstream/test-py314' into test-py314
mattwthompson 5794ab4
Update release notes
mattwthompson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4451,7 +4451,7 @@ def to_qcschema(self, multiplicity=1, conformer=0, extras=None): | |
|
|
||
| Returns | ||
| --------- | ||
| qcelemental.models.Molecule | ||
| qcelemental.models.v2.Molecule | ||
| A validated QCElemental Molecule. | ||
|
|
||
| Examples | ||
|
|
@@ -4504,7 +4504,11 @@ def to_qcschema(self, multiplicity=1, conformer=0, extras=None): | |
| "identifiers": identifiers, | ||
| } | ||
|
|
||
| return qcel.models.Molecule.from_data(schema_dict, validate=True) | ||
| try: | ||
| return qcel.models.v2.Molecule.from_data(schema_dict, validate=True) | ||
| except AttributeError: # other errors to capture here? | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This could be tightened up with something |
||
| # fallback for older QCElemental models (Pydantic V1 or V1/V2 compatibility) | ||
| return qcel.models.Molecule.from_data(schema_dict, validate=True) | ||
|
|
||
| @classmethod | ||
| def from_mapped_smiles( | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.