Commit 203d8f6d authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

fix the generation of "simname_fields.h5" file

parent 9f533ef2
......@@ -145,6 +145,8 @@ class PP(_code):
pars['filter_type'] = 'Gauss'
pars['max_velocity_estimate'] = float(10)
pars['histogram_bins'] = int(129)
elif dns_type == 'get_rfields':
pars['TrS2_on'] = int(0)
return pars
def get_data_file_name(self):
return os.path.join(self.work_dir, self.simname + '.h5')
......@@ -806,7 +808,7 @@ class PP(_code):
checkpoint_file_list = [self.simname + '_checkpoint_{0}.h5'.format(cp)
for cp in range(df['checkpoint'][()])]
for cp in range(df['checkpoint'][()]+1)]
for cpf_name in checkpoint_file_list:
if os.path.exists(cpf_name):
cpf = h5py.File(cpf_name, 'r')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment