[postprocessor] list -> array
This commit is contained in:
+4
-4
@@ -891,7 +891,7 @@ class PostProcessor(HDF5Container):
|
|||||||
# Get coordinates
|
# Get coordinates
|
||||||
im_extent = np.array(self.save.root.maps._v_attrs.im_extent) * self.lbox
|
im_extent = np.array(self.save.root.maps._v_attrs.im_extent) * self.lbox
|
||||||
map_size = self.pp_params.pymses.map_size
|
map_size = self.pp_params.pymses.map_size
|
||||||
center = self.pp_params.disk.center * self.lbox
|
center = np.array(self.pp_params.disk.center) * self.lbox
|
||||||
|
|
||||||
# Physical size of cells
|
# Physical size of cells
|
||||||
dx = (im_extent[1] - im_extent[0]) / map_size
|
dx = (im_extent[1] - im_extent[0]) / map_size
|
||||||
@@ -918,7 +918,7 @@ class PostProcessor(HDF5Container):
|
|||||||
"""
|
"""
|
||||||
Computes radial bins (for disk)
|
Computes radial bins (for disk)
|
||||||
"""
|
"""
|
||||||
center = self.pp_params.disk.center * self.lbox
|
center = np.array(self.pp_params.disk.center) * self.lbox
|
||||||
im_extent = np.array(self.save.root.maps._v_attrs.im_extent) * self.lbox
|
im_extent = np.array(self.save.root.maps._v_attrs.im_extent) * self.lbox
|
||||||
|
|
||||||
# radius of the corner of the box plus a margin
|
# radius of the corner of the box plus a margin
|
||||||
@@ -959,7 +959,7 @@ class PostProcessor(HDF5Container):
|
|||||||
"""
|
"""
|
||||||
im_extent = np.array(self.save.root.maps._v_attrs.im_extent) * self.lbox
|
im_extent = np.array(self.save.root.maps._v_attrs.im_extent) * self.lbox
|
||||||
map_size = self.pp_params.pymses.map_size
|
map_size = self.pp_params.pymses.map_size
|
||||||
center = self.pp_params.disk.center * self.lbox
|
center = np.array(self.pp_params.disk.center) * self.lbox
|
||||||
|
|
||||||
# Physical size of cells
|
# Physical size of cells
|
||||||
dx = (im_extent[1] - im_extent[0]) / map_size
|
dx = (im_extent[1] - im_extent[0]) / map_size
|
||||||
@@ -1296,7 +1296,7 @@ class PostProcessor(HDF5Container):
|
|||||||
# Get coordinates
|
# Get coordinates
|
||||||
im_extent = np.array(self.save.root.maps._v_attrs.im_extent) * self.lbox
|
im_extent = np.array(self.save.root.maps._v_attrs.im_extent) * self.lbox
|
||||||
map_size = self.pp_params.pymses.map_size
|
map_size = self.pp_params.pymses.map_size
|
||||||
center = self.pp_params.disk.center * self.lbox
|
center = np.array(self.pp_params.disk.center) * self.lbox
|
||||||
|
|
||||||
# Physical size of cells
|
# Physical size of cells
|
||||||
dx = (im_extent[1] - im_extent[0]) / map_size
|
dx = (im_extent[1] - im_extent[0]) / map_size
|
||||||
|
|||||||
Reference in New Issue
Block a user