Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test unit handling in GMSO for standard unit conversion utilities #747

Merged
merged 12 commits into from
Aug 11, 2023
Merged
13 changes: 12 additions & 1 deletion gmso/core/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
convert_params_units,
convert_topology_expressions,
)
from gmso.utils.units import GMSO_UnitRegsitry as UnitReg
from gmso.utils.units import GMSO_UnitRegistry as UnitReg

scaling_interaction_idxes = {"12": 0, "13": 1, "14": 2}

Expand Down Expand Up @@ -170,6 +170,17 @@
}

self._unique_connections = {}
self._unit_system = None

@property
def unit_system(self):
"""Return the unyt system of the topology."""
return self._unit_system

Check warning on line 178 in gmso/core/topology.py

View check run for this annotation

Codecov / codecov/patch

gmso/core/topology.py#L178

Added line #L178 was not covered by tests

@unit_system.setter
def unit_system(self, unit_system):
"""Set the unyt system of the topology."""
self._name = unit_system

Check warning on line 183 in gmso/core/topology.py

View check run for this annotation

Codecov / codecov/patch

gmso/core/topology.py#L183

Added line #L183 was not covered by tests

@property
def name(self):
Expand Down
Loading
Loading