Skip to content

Commit

Permalink
Merge changes from pydata#9476
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNicholas authored Sep 12, 2024
1 parent e7ab84d commit 95384ac
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions xarray/core/datatree.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,14 +468,9 @@ def __init__(
# shallow copy to avoid modifying arguments in-place (see GH issue #9196)
self.children = {name: child.copy() for name, child in children.items()}

<<<<<<< eschalk/make-illegal-path-like-variable-names-when-dt-from-ds
def _set_node_data(self, ds: Dataset):
_check_for_slashes_in_names(ds.variables)
data_vars, coord_vars = _collect_data_and_coord_variables(ds)
=======
def _set_node_data(self, dataset: Dataset):
_check_for_slashes_in_names(ds.variables)
data_vars, coord_vars = _collect_data_and_coord_variables(dataset)
>>>>>>> main
self._data_variables = data_vars
self._node_coord_variables = coord_vars
self._node_dims = dataset._dims
Expand Down

0 comments on commit 95384ac

Please sign in to comment.