Skip to content
Snippets Groups Projects
Commit 6dcaa420 authored by Philipp Schmidt's avatar Philipp Schmidt
Browse files

Merge branch 'workaround/ignore-attrs-on-h5copy' into 'master'

Ignore attributes when copying HDF objects from one file to another

See merge request detectors/pycalibration!791
parents c237c071 d91353ba
No related branches found
No related tags found
1 merge request!791Ignore attributes when copying HDF objects from one file to another
......@@ -25,7 +25,7 @@ def copy_except_tree(src_group: h5py.Group, dest_group: h5py.Group, except_tree)
if except_tree_part is True: # Totally excluded
pass
elif except_tree_part is None: # Not excluded
src_group.copy(name, dest_group, name)
src_group.copy(name, dest_group, name, without_attrs=True)
else: # Partially excluded
src_subgroup = src_group[name]
assert isinstance(src_subgroup, h5py.Group)
......
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