Skip to content
Snippets Groups Projects
Commit e49eb316 authored by Dimitar Vlaykov's avatar Dimitar Vlaykov
Browse files

bugfix: check for specified file_name

parent 2e325477
No related branches found
Tags 2.9.1
1 merge request!21Bugfix/nansampling
Pipeline #
......@@ -178,7 +178,7 @@ class _base(object):
parameters = None,
file_name = None):
assert(group != 'parameters')
if type(file_name) == None:
if type(file_name) == type(None):
file_name = os.path.join(self.work_dir, self.simname + '.h5')
ofile = h5py.File(file_name, 'a')
for k in parameters.keys():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment