diff --git a/gmso/formats/gro.py b/gmso/formats/gro.py index 63d1e131d..36f7052d0 100644 --- a/gmso/formats/gro.py +++ b/gmso/formats/gro.py @@ -163,7 +163,7 @@ def _validate_positions(pos_array): ) min_xyz = np.min(pos_array, axis=0) unit = min_xyz.units - min_xyz0 = np.where(min_xyz < 0 * unit, min_xyz, 0 * unit) + min_xyz0 = np.where(min_xyz < 0 * unit, min_xyz, 0 * unit) * unit pos_array -= min_xyz0