Skip to content

Commit c96997c

Browse files
Adding import numpy as np to kernels
Fixing c002294
1 parent 79c20db commit c96997c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

parcels/kernel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ def fieldset(self):
183183
def add_positionupdate_kernels(self):
184184
# Adding kernels that set and update the coordinate changes
185185
def Setcoords(particle, fieldset, time): # pragma: no cover
186+
import numpy as np # noqa
187+
186188
particle_dlon = 0 # noqa
187189
particle_dlat = 0 # noqa
188190
particle_ddepth = 0 # noqa

0 commit comments

Comments
 (0)