correct axes orientation

This commit is contained in:
Noe Brucy
2021-11-23 14:54:58 +01:00
parent b8f79af121
commit b7512bd5ed
+4 -1
View File
@@ -458,10 +458,13 @@ class SnapshotProcessor(HDF5Container):
self._cam = {}
for ax_los in self._ax_nb: # los = line of sight
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
self._cam[ax_los] = Camera(
center=self.params.pymses.center,
line_of_sight_axis=ax_los,
line_of_sight_axis=real_ax,
region_size=[im_extent[1] - im_extent[0], im_extent[3] - im_extent[2]],
distance=distance,
far_cut_depth=distance,