Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronspring committed Oct 29, 2023
1 parent 88474c9 commit 5a43705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xskillscore/core/utils.py
Expand Up @@ -189,7 +189,7 @@ def _helper_bool_to_int(da):

def _check_identical_xr_types(a, b):
"""Check that a and b are both xr.Dataset or both xr.DataArray."""
if type(a) != type(b):
if not isinstance(a, type(b)):
raise ValueError(f"a and b must be same type, found {type(a)} and {type(b)}")
for d in [a, b]:
if not isinstance(d, (xr.Dataset, xr.DataArray)):
Expand Down

0 comments on commit 5a43705

Please sign in to comment.