Skip to content

Commit

Permalink
Update _group.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkohler committed Feb 23, 2024
1 parent 1b4cd5c commit f7857e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WrightTools/_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ def copy(self, parent=None, name=None, verbose=True):
new.attrs.update(self.attrs)
# children
for k, v in self.items():
super().copy(v, new, name=v.natural_name)
name = v.natural_name if hasattr(v, "natural_name") else None
super().copy(v, new, name=name)
new.flush()
# Converts to appropriate Data/Collection object
new = new["/"]
Expand Down

0 comments on commit f7857e8

Please sign in to comment.