PYTHON: Restore zmin/zmax/zblocks for 2D AmunXML snapshots.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
Grzegorz Kowal 2021-10-05 09:38:49 -03:00
parent b6edd6ca97
commit d714974b33

View File

@ -85,6 +85,13 @@ class AmunXML(Amun):
self.attributes['nchunks'] = self.attributes['nprocs']
del self.attributes['nprocs']
if not 'zmin' in self.attributes:
self.attributes['zmin'] = 0
if not 'zmax' in self.attributes:
self.attributes['zmax'] = 1
if not 'zblocks' in self.attributes:
self.attributes['zblocks'] = 1
def __fill_variables__(self):
"""