Skip to content

Commit

Permalink
Do not use deprecated OpenFF Toolkit iterator (#541)
Browse files Browse the repository at this point in the history
* Do not use deprecated code path, use development build

* Remove development install

* Use newest toolkit

* Loosen toolit constriant
  • Loading branch information
mattwthompson authored Jul 10, 2023
1 parent e102f79 commit 184e3e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies:
- openmm
- parmed>=3.4.3
- ele
- openff-toolkit >=0.11.0
- openff-toolkit >=0.11
- gmso
- pip
- pre-commit
Expand Down
2 changes: 1 addition & 1 deletion foyer/topology_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def from_openff_topology(cls, openff_topology: "OpenFFTopology"):
if uses_old_api:
from parmed import periodic_table as pt

for top_atom in openff_topology.topology_atoms:
for top_atom in openff_topology.atoms:
atom = top_atom.atom
element_symbol = pt.Element[atom.atomic_number]
top_graph.add_atom(
Expand Down

0 comments on commit 184e3e3

Please sign in to comment.