Skip to content

Commit

Permalink
remove redunant setting of _name
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNicholas committed Sep 12, 2024
1 parent b1f66e1 commit 3a1f372
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion xarray/core/datatree.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,6 @@ def _copy_node(
"""Copy just one node of a tree"""

new_node = super()._copy_node()
new_node._name = self.name

data = self._to_dataset_view(rebuild_dims=False, inherited=False)
if deep:
Expand Down

0 comments on commit 3a1f372

Please sign in to comment.