Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/access_moppy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ def estimate_data_size(ds, cmor_name):
if use_chunked_write and is_var_dask and has_time_dim:
# Use self.chunker to calculate optimal write chunk size
chunk_sizes = self.chunker.calculate_chunk_size_for_variable(vdat)
time_chunk = chunk_sizes.get("time", self.ds.sizes["time"])
time_chunk = int(chunk_sizes.get("time", self.ds.sizes["time"]))
total_timesteps = self.ds.sizes["time"]
time_idx = vdat.dims.index("time")

Expand Down