Skip to content

Commit

Permalink
Merge branch 'gro_writer_bug' of https://github.com/daico007/gmso int…
Browse files Browse the repository at this point in the history
…o gro_writer_bug
  • Loading branch information
daico007 committed Sep 6, 2023
2 parents cd7de1f + 2898d88 commit a95eae7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gmso/external/convert_mbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import numpy as np
import unyt as u
from boltons.setutils import IndexedSet
from unyt import Unit

from gmso.core.atom import Atom
from gmso.core.bond import Bond
Expand Down Expand Up @@ -271,7 +272,7 @@ def _parse_site(site_map, particle, search_method, infer_element=False):
ele = search_method(particle.name) if infer_element else None

charge = particle.charge * u.elementary_charge if particle.charge else None
mass = particle.mass * u.amu if particle.mass else None
mass = particle.mass * Unit("amu") if particle.mass else None

site = Atom(
name=particle.name,
Expand Down

0 comments on commit a95eae7

Please sign in to comment.