Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/mosdef-hub/gmso into change…
Browse files Browse the repository at this point in the history
…_default_option_for_apply
  • Loading branch information
daico007 committed Sep 5, 2023
2 parents beaf21e + d584ffa commit ceedf90
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 ceedf90

Please sign in to comment.