Commit 3298e31d authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[io][utils] Set inputs (plural)

parent 937840f8
......@@ -78,7 +78,7 @@ def read_process(h5_file):
nx_entry = nx[nx.attrs["default"]]
# find the default NXdata group
nx_process = nx_entry["process_1"]
input_data = nx_process["input"]
input_data = nx_process["inputs"]
dimensions = {}
for key in input_data.keys():
dimensions[key] = numpy.array(list(input_data[key]))
......@@ -156,7 +156,7 @@ def write_process(h5_file, entry, dimensions, W, data, processing_order,
nx_process['date'] = datetime.now().replace(microsecond=0).isoformat()
nx_process['processing_order'] = numpy.int32(processing_order)
nx_parameters = nx_process.require_group("input")
nx_parameters = nx_process.require_group("inputs")
nx_parameters.attrs['NX_class'] = "NXparameters"
nx_parameters_path = nx_parameters.name
results = nx_process.require_group("results")
......
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