Skip to content

Commit

Permalink
Fix bug when running with Kerchunk
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Sep 4, 2023
1 parent 11fbea5 commit eb37dc6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cubed/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ def extract_array_names(frame):
array_names_to_variable_names[arr.name] = var
elif (
type(arr).__module__.split(".")[0] == "xarray"
and hasattr(arr, "data")
and hasattr(arr, "name")
and arr.__class__.__name__ == "DataArray"
):
if isinstance(arr.data, Array):
array_names_to_variable_names[arr.data.name] = arr.name
Expand Down

0 comments on commit eb37dc6

Please sign in to comment.