Skip to content

Commit

Permalink
Merge pull request #1788 from OceanParcels/update_pfile_chunks
Browse files Browse the repository at this point in the history
Update default value of particlefile chunks to length of pset
  • Loading branch information
erikvansebille authored Dec 5, 2024
2 parents 29ecf0c + 7542e4c commit 5ce1347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parcels/particlefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def write(self, pset, time: float | timedelta | np.timedelta64 | None, indices=N

if self.create_new_zarrfile:
if self.chunks is None:
self._chunks = (len(ids), 1)
self._chunks = (len(pset), 1)
if pset._repeatpclass is not None and self.chunks[0] < 1e4: # type: ignore[index]
warnings.warn(
f"ParticleFile chunks are set to {self.chunks}, but this may lead to "
Expand Down

0 comments on commit 5ce1347

Please sign in to comment.