less verbose

This commit is contained in:
Noe Brucy
2022-08-26 15:28:31 +02:00
parent 87e6d7da08
commit 31bbf9c373
4 changed files with 117 additions and 79 deletions
+10 -7
View File
@@ -390,13 +390,14 @@ class SnapshotProcessor(HDF5Container):
coeff=factor)
time_in_right_unit = self.time * self.info["unit_time"].express(unit_time)
self.snapshot = Snapshot(
name=str(self.num),
description="",
time=(time_in_right_unit, unit_time),
directory_path=self.path,
data_reference="OUTPUT_{}".format(self.num),
)
if self.params.astrophysix.generate:
self.snapshot = Snapshot(
name=str(self.num),
description="",
time=(time_in_right_unit, unit_time),
directory_path=self.path,
data_reference="OUTPUT_{}".format(self.num),
)
try:
self.init_pymses()
@@ -488,6 +489,8 @@ class SnapshotProcessor(HDF5Container):
self.open()
if "/maps" not in self.save:
self.save.create_group("/", "maps", "2D maps")
if "/datasets" not in self.save:
self.save.create_group("/", "datasets", "Complex datasets")
self.save.root.maps._v_attrs.center = center
self.save.root.maps._v_attrs.radius = self._radius
self.save.root.maps._v_attrs.im_extent = im_extent