Skip to content

Commit

Permalink
Merge pull request #481 from martindurant/append_func
Browse files Browse the repository at this point in the history
Allow mzz.combine where selector is not a string
  • Loading branch information
martindurant authored Jul 19, 2024
2 parents fd86c58 + 267dc28 commit d907aba
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 d907aba

Please sign in to comment.