Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions devtools/conda-envs/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ dependencies:
- toml
- bson
- msgpack-python
- pydantic =2
- qcelemental
- qcportal >=0.50
- qcengine
Expand Down
2 changes: 1 addition & 1 deletion devtools/conda-envs/test_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies:
- toml
- bson
- msgpack-python
- pydantic
- pydantic =2
- qcelemental
- qcportal >=0.50
- qcengine
Expand Down
2 changes: 1 addition & 1 deletion devtools/conda-envs/test_env_no_openeye.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies:
- toml
- bson
- msgpack-python
- pydantic
- pydantic =2
- qcelemental
- qcportal >=0.50
- qcengine
Expand Down
4 changes: 2 additions & 2 deletions examples/QCArchive_interface/QCarchive_interface.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@
}
],
"source": [
"entry.dict()"
"entry.model_dump()"
]
},
{
Expand Down Expand Up @@ -590,7 +590,7 @@
"molecule_from_entry = Molecule.from_qcschema(entry)\n",
"\n",
"# we could have also used the dictionary representation of the object\n",
"molecule_from_dict = Molecule.from_qcschema(entry.dict())\n",
"molecule_from_dict = Molecule.from_qcschema(entry.model_dump())\n",
"\n",
"assert molecule_from_entry == molecule_from_dict\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion openff/toolkit/_tests/test_molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -3296,7 +3296,7 @@ def test_qcschema_molecule_record_round_trip_from_to_from(self):
"Molecule roundtrip to/from_qcschema failed",
)

mol_dict = off_qcschema.dict()
mol_dict = off_qcschema.model_dump()
del mol_dict["extras"]["canonical_isomeric_explicit_hydrogen_mapped_smiles"]
del mol_dict["identifiers"]["canonical_isomeric_explicit_hydrogen_mapped_smiles"]
with pytest.raises(MissingCMILESError):
Expand Down
2 changes: 1 addition & 1 deletion openff/toolkit/topology/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -4705,7 +4705,7 @@ def from_qcschema(
# Process input as dict; convert if necessary
if not isinstance(qca_object, dict):
try:
qca_object = qca_object.dict()
qca_object = qca_object.model_dump()
except AttributeError:
raise AttributeError(
f"The input object (type {type(qca_object)=} "
Expand Down