Skip to content

Commit

Permalink
Fix a redundant unit tag (#1227)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwthompson authored Mar 24, 2022
1 parent 45fb642 commit 615f825
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions openff/toolkit/utils/openeye_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,9 +1025,8 @@ def describe_oeatom(oeatom):
# Store with implicit units until we're sure this conformer exists
positions = np.zeros(shape=[n_atoms, 3], dtype=np.float64)
for oe_id in conf.GetCoords().keys():
off_atom_coords = unit.Quantity(
conf.GetCoords()[oe_id], unit.angstrom
)
# implicitly in angstrom
off_atom_coords = conf.GetCoords()[oe_id]
off_atom_index = off_to_oe_idx[oe_id]
positions[off_atom_index, :] = off_atom_coords
all_zeros = not np.any(positions)
Expand Down

0 comments on commit 615f825

Please sign in to comment.