Skip to content

Commit 83112c7

Browse files
Merge pull request #1953 from OceanParcels/JamiePringle-patch-1
Update particleset.py to make partition_function with repeatdt
2 parents 76e3233 + 6670b40 commit 83112c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parcels/particleset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def ArrayClass_init(self, *args, **kwargs):
199199
if time[0] and not np.allclose(time, time[0]):
200200
raise ValueError("All Particle.time should be the same when repeatdt is not None")
201201
self._repeatpclass = pclass
202-
self._repeatkwargs = kwargs
202+
self._repeatkwargs = kwargs.copy()
203203
self._repeatkwargs.pop("partition_function", None)
204204

205205
ngrids = fieldset.gridset.size

0 commit comments

Comments
 (0)