Commit 45e76c7a authored by payno's avatar payno
Browse files

[h5_to_nx] fix: insure no links are created if only one created (if only one...

[h5_to_nx] fix: insure no links are created if only one created (if only one acquisition to convert)
parent 81f1eb3e
Pipeline #38148 passed with stages
in 4 minutes and 14 seconds
......@@ -835,7 +835,7 @@ def h5_to_nx(
plugins=plugins,
)
# if split files create a master file with link to those entries
if single_file is False:
if single_file is False and len(acquisitions) > 1:
_logger.info("create link in %s" % output_file)
with HDF5File(output_file, "a") as master_file:
link_file = os.path.relpath(
......
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