Skip to content
Snippets Groups Projects
Commit aa070b81 authored by Fabian Wachsmann's avatar Fabian Wachsmann
Browse files

Provenance for not-opened xdsets

parent be2d3b0b
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,8 @@ class Provenance(object):
attributes = {}
default_atts = ["chunkdim", "startchunk", "target_mb", "open_mfdataset_kwargs"]
for key in default_atts:
attributes[TZIS[key]] = pargs[key]
if key in pargs.keys():
attributes[TZIS[key]] = pargs[key]
activity.add_attributes(attributes)
def gen_input(self, input_type, input_ids):
......
......@@ -755,7 +755,7 @@ class Tzis:
f"input_{first_attr}", self.mf_dset.attrs[first_attr]
)
elif self.verbose:
print("Cannot create input provenance")
print("Cannot create input provenance because no attrs given.")
else:
pargs["open_mfdataset_kwargs"] = json.dumps(OPEN_MFDATASET_KWARGS)
......
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