-
QuestionQuestionGood afternoon! I am trying to incorporate ErrorCode into my runs to delete stuck particles, but unfortunately I am not able to import it: Has this function since been deprecated? For reference, I am adding it to my particleset in this way: Execute simulationThank you very much for your time, Tom Supporting code/error messagesfrom parcels import (
AdvectionRK4,
DiffusionUniformKh,
FieldSet,
JITParticle,
ParticleSet,
Variable,
Field,
VectorField,
ErrorCode,
) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hi @TomMBIO . Looks like you're using code from an older version of Parcels. Error codes are now directly supported in Kernels (no need to do Also, |
Beta Was this translation helpful? Give feedback.
Hi @TomMBIO and @VeckoTheGecko - I came to this conversation a bit late, so I'll just link the relevant section of the kernel loop tutorial: https://docs.oceanparcels.org/en/latest/examples/tutorial_kernelloop.html#Working-with-Status-Codes