Skip to content

Commit 81a922e

Browse files
Merge pull request #2324 from Parcels-code/removing_imports_from_kernels
Removing numpy import from Setcoords kernel
2 parents ce74485 + 5f0a165 commit 81a922e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/parcels/_core/kernel.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from __future__ import annotations
22

3-
import math # noqa: F401
4-
import random # noqa: F401
53
import types
64
import warnings
75
from typing import TYPE_CHECKING
@@ -116,8 +114,6 @@ def remove_deleted(self, pset):
116114
def add_positionupdate_kernels(self):
117115
# Adding kernels that set and update the coordinate changes
118116
def Setcoords(particles, fieldset): # pragma: no cover
119-
import numpy as np # noqa
120-
121117
particles.lon += particles.dlon
122118
particles.lat += particles.dlat
123119
particles.z += particles.dz

0 commit comments

Comments
 (0)