diff --git a/snapshotprocessor.py b/snapshotprocessor.py index 217bd41..2ce2a36 100644 --- a/snapshotprocessor.py +++ b/snapshotprocessor.py @@ -399,6 +399,7 @@ class SnapshotProcessor(HDF5Container): self.num, order=self.params.pymses.order, verbose=self.params.pymses.verbose, + check_endianness=False, ) self._amr = self._ro.amr_source(self.params.pymses.variables) self._part = self._ro.particle_source(self.params.pymses.part_variables) @@ -460,7 +461,7 @@ class SnapshotProcessor(HDF5Container): ax_v = self._axes_v[ax_los] real_ax = ax_los if real_ax == "y": - real_ax = [0, -1, 0] # we look from -y to keep z upwards + real_ax = [0, -1, 0] # we look from -y to keep z upwards self._cam[ax_los] = Camera( center=self.params.pymses.center, @@ -1614,10 +1615,10 @@ class SnapshotProcessor(HDF5Container): "vy": "unit_velocity", "vz": "unit_velocity", "rot_period": "unit_time", - "lx": {"unit_mass" : 1, "unit_length" : 2, "unit_time" : -1}, - "ly": {"unit_mass" : 1, "unit_length" : 2, "unit_time" : -1}, - "lz": {"unit_mass" : 1, "unit_length" : 2, "unit_time" : -1}, - "acc_rate": {"unit_mass" : 1, "unit_time" : -1}, + "lx": {"unit_mass": 1, "unit_length": 2, "unit_time": -1}, + "ly": {"unit_mass": 1, "unit_length": 2, "unit_time": -1}, + "lz": {"unit_mass": 1, "unit_length": 2, "unit_time": -1}, + "acc_rate": {"unit_mass": 1, "unit_time": -1}, "acc_lum": U.none, "age": U.year, "int_lum": U.none, @@ -1627,8 +1628,8 @@ class SnapshotProcessor(HDF5Container): "tform": "unit_time", "del_mass": U.Msun, "rho_gas": "unit_density", - "cs**2": {"unit_velocity" : 2}, - "etherm": {"unit_mass" : 1, "unit_velocity" : 2}, + "cs**2": {"unit_velocity": 2}, + "etherm": {"unit_mass": 1, "unit_velocity": 2}, "vx_gas": "unit_velocity", "vy_gas": "unit_velocity", "vz_gas": "unit_velocity",