[snap] remove endianess check
This commit is contained in:
@@ -399,6 +399,7 @@ class SnapshotProcessor(HDF5Container):
|
|||||||
self.num,
|
self.num,
|
||||||
order=self.params.pymses.order,
|
order=self.params.pymses.order,
|
||||||
verbose=self.params.pymses.verbose,
|
verbose=self.params.pymses.verbose,
|
||||||
|
check_endianness=False,
|
||||||
)
|
)
|
||||||
self._amr = self._ro.amr_source(self.params.pymses.variables)
|
self._amr = self._ro.amr_source(self.params.pymses.variables)
|
||||||
self._part = self._ro.particle_source(self.params.pymses.part_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]
|
ax_v = self._axes_v[ax_los]
|
||||||
real_ax = ax_los
|
real_ax = ax_los
|
||||||
if real_ax == "y":
|
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(
|
self._cam[ax_los] = Camera(
|
||||||
center=self.params.pymses.center,
|
center=self.params.pymses.center,
|
||||||
@@ -1614,10 +1615,10 @@ class SnapshotProcessor(HDF5Container):
|
|||||||
"vy": "unit_velocity",
|
"vy": "unit_velocity",
|
||||||
"vz": "unit_velocity",
|
"vz": "unit_velocity",
|
||||||
"rot_period": "unit_time",
|
"rot_period": "unit_time",
|
||||||
"lx": {"unit_mass" : 1, "unit_length" : 2, "unit_time" : -1},
|
"lx": {"unit_mass": 1, "unit_length": 2, "unit_time": -1},
|
||||||
"ly": {"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},
|
"lz": {"unit_mass": 1, "unit_length": 2, "unit_time": -1},
|
||||||
"acc_rate": {"unit_mass" : 1, "unit_time" : -1},
|
"acc_rate": {"unit_mass": 1, "unit_time": -1},
|
||||||
"acc_lum": U.none,
|
"acc_lum": U.none,
|
||||||
"age": U.year,
|
"age": U.year,
|
||||||
"int_lum": U.none,
|
"int_lum": U.none,
|
||||||
@@ -1627,8 +1628,8 @@ class SnapshotProcessor(HDF5Container):
|
|||||||
"tform": "unit_time",
|
"tform": "unit_time",
|
||||||
"del_mass": U.Msun,
|
"del_mass": U.Msun,
|
||||||
"rho_gas": "unit_density",
|
"rho_gas": "unit_density",
|
||||||
"cs**2": {"unit_velocity" : 2},
|
"cs**2": {"unit_velocity": 2},
|
||||||
"etherm": {"unit_mass" : 1, "unit_velocity" : 2},
|
"etherm": {"unit_mass": 1, "unit_velocity": 2},
|
||||||
"vx_gas": "unit_velocity",
|
"vx_gas": "unit_velocity",
|
||||||
"vy_gas": "unit_velocity",
|
"vy_gas": "unit_velocity",
|
||||||
"vz_gas": "unit_velocity",
|
"vz_gas": "unit_velocity",
|
||||||
|
|||||||
Reference in New Issue
Block a user