diff --git a/parcels/particlefile.py b/parcels/particlefile.py index f8e5aea65..e27a56243 100644 --- a/parcels/particlefile.py +++ b/parcels/particlefile.py @@ -253,14 +253,6 @@ 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(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 " - f"a significant slowdown in Parcels when many calls to repeatdt. " - f"Consider setting a larger chunk size for your ParticleFile (e.g. chunks=(int(1e4), 1)).", - FileWarning, - stacklevel=2, - ) if (self._maxids > len(ids)) or (self._maxids > self.chunks[0]): # type: ignore[index] arrsize = (self._maxids, self.chunks[1]) # type: ignore[index] else: diff --git a/parcels/particleset.py b/parcels/particleset.py index e13ba81ee..c9b16cfde 100644 --- a/parcels/particleset.py +++ b/parcels/particleset.py @@ -70,26 +70,16 @@ def __init__( lat=None, depth=None, time=None, - repeatdt=None, lonlatdepth_dtype=None, trajectory_ids=None, **kwargs, ): self._data = None self._repeat_starttime = None - self._repeatlon = None - self._repeatlat = None - self._repeatdepth = None - self._repeatpclass = None - self._repeatkwargs = None self._kernel = None self._interaction_kernel = None self.fieldset = fieldset - - if repeatdt: - NotImplementedError("ParticleSet.repeatdt is not implemented yet in v4") - lon = np.empty(shape=0) if lon is None else convert_to_flat_array(lon) lat = np.empty(shape=0) if lat is None else convert_to_flat_array(lat) time = np.empty(shape=0) if time is None else convert_to_flat_array(time) diff --git a/v3to4-breaking-changes.md b/v3to4-breaking-changes.md index c6e6979f4..83c68d7f5 100644 --- a/v3to4-breaking-changes.md +++ b/v3to4-breaking-changes.md @@ -11,5 +11,6 @@ FieldSet ParticleSet +- ParticleSet init had repeatdt removed - ParticleSet.execute() expects `numpy.datetime64`/`numpy.timedelta.64` for `runtime`, `endtime` and `dt` - `ParticleSet.from_field()`, `ParticleSet.from_line()`, `ParticleSet.from_list()` has been removed