Skip to content

Commit

Permalink
Allow mzz.combine where selector is not a string
Browse files Browse the repository at this point in the history
  • Loading branch information
martindurant committed Jul 19, 2024
1 parent 8b61c5d commit 267dc28
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kerchunk/combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,11 @@ def append(
)
mzz.coos = {}
for var, selector in mzz.coo_map.items():
if selector.startswith("cf:") and "M" not in mzz.coo_dtypes.get(var, ""):
if (
isinstance(selector, str)
and selector.startswith("cf:")
and "M" not in mzz.coo_dtypes.get(var, "")
):
import cftime
import datetime

Expand Down

0 comments on commit 267dc28

Please sign in to comment.