Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
calibration
pycalibration
Commits
d91353ba
Commit
d91353ba
authored
2 years ago
by
Philipp Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Ignore attributes when copying HDF objects from one file to another
parent
ad540a40
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!791
Ignore attributes when copying HDF objects from one file to another
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cal_tools/h5_copy_except.py
+1
-1
1 addition, 1 deletion
src/cal_tools/h5_copy_except.py
with
1 addition
and
1 deletion
src/cal_tools/h5_copy_except.py
+
1
−
1
View file @
d91353ba
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment