You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user_guide/v4-migration.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,6 @@ Version 4 of Parcels is unreleased at the moment. The information in this migrat
10
10
-`particle.delete()` is no longer valid. Instead, use `particle.state = StatusCode.Delete`.
11
11
- Sharing state between kernels must be done via the particle data (as the kernels are not combined under the hood anymore).
12
12
-`particl_dlon`, `particle_dlat` etc have been renamed to `particle.dlon` and `particle.dlat`.
13
-
-`particle.dt` is a np.timedelta64 object; be careful when multiplying `particle.dt` with a velocity, as its value may be cast to nanoseconds.
14
13
- The `time` argument in the Kernel signature has been removed in the Kernel API, so can't be used. Use `particle.time` instead.
15
14
- The `particle` argument in the Kernel signature has been renamed to `particles`.
16
15
-`math` functions should be replaced with array compatible equivalents (e.g., `math.sin` -> `np.sin`). Instead of `ParcelsRandom` you should use numpy's random functions.
@@ -27,7 +26,7 @@ Version 4 of Parcels is unreleased at the moment. The information in this migrat
27
26
## ParticleSet
28
27
29
28
-`repeatdt` and `lonlatdepth_dtype` have been removed from the ParticleSet.
30
-
- ParticleSet.execute() expects `numpy.datetime64`/`numpy.timedelta.64` for `runtime`, `endtime` and `dt`.
29
+
- ParticleSet.execute() expects `numpy.datetime64`/`numpy.timedelta.64` for `endtime`. While floats are supported for `runtime` and `dt`, using `numpy.datetime64`/`numpy.timedelta.64` for these arguments too is encouraged.
31
30
-`ParticleSet.from_field()`, `ParticleSet.from_line()`, `ParticleSet.from_list()` have been removed.
0 commit comments