Skip to content

Commit 88a2c96

Browse files
Update v4-migration.md
1 parent 63896ac commit 88a2c96

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

docs/user_guide/v4-migration.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Version 4 of Parcels is unreleased at the moment. The information in this migrat
1010
- `particle.delete()` is no longer valid. Instead, use `particle.state = StatusCode.Delete`.
1111
- Sharing state between kernels must be done via the particle data (as the kernels are not combined under the hood anymore).
1212
- `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.
1413
- The `time` argument in the Kernel signature has been removed in the Kernel API, so can't be used. Use `particle.time` instead.
1514
- The `particle` argument in the Kernel signature has been renamed to `particles`.
1615
- `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
2726
## ParticleSet
2827

2928
- `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.
3130
- `ParticleSet.from_field()`, `ParticleSet.from_line()`, `ParticleSet.from_list()` have been removed.
3231

3332
## ParticleFile

0 commit comments

Comments
 (0)