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

Ignore attributes when copying HDF objects from one file to another

parent ad540a40
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