Skip to content

Commit 58982d9

Browse files
committed
DOC: Add note on vectorized functions
1 parent d4a47da commit 58982d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/community/v4-migration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Version 4 of Parcels is unreleased at the moment. The information in this migrat
1212
- `particl_dlon`, `particle_dlat` etc have been renamed to `particle.dlon` and `particle.dlat`.
1313
- `particle.dt` is a np.timedelta64 object; be careful when multiplying `particle.dt` with a velocity, as its value may be cast to nanoseconds.
1414
- The `time` argument in the Kernel signature is now standard `None` (and may be removed in the Kernel API before release of v4), so can't be used. Use `particle.time` instead.
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.
1516

1617
## FieldSet
1718

0 commit comments

Comments
 (0)