Skip to content

Commit

Permalink
Ensure chunks is not passed in kwargs when partition_chunks is available
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins committed Oct 15, 2024
1 parent 5ba100f commit 6dc3e62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xarray_ms/backend/msv2/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ def open_datatree(
if not partition_chunks:
partition_chunks = kwargs.pop("chunks", None)
elif "chunks" in kwargs:
kwargs.pop("chunks", None)
warnings.warn("`partition_chunks` overriding `chunks`")

pchunks = promote_chunks(structure, partition_chunks)
Expand Down

0 comments on commit 6dc3e62

Please sign in to comment.