11from datetime import timedelta
22
33import numpy as np
4- import pandas as pd
54import xarray as xr
65
7- from parcels import AdvectionRK4 , FieldSet , JITParticle , ParticleSet , StatusCode , Variable , ScipyParticle
6+ from parcels import AdvectionRK4 , FieldSet , JITParticle , ParticleSet , StatusCode , Variable
87
98
109def ArgoVerticalMovement (particle , fieldset , time ):
@@ -59,7 +58,7 @@ class ArgoFloatJIT:
5958
6059 def setup (self ):
6160 self .runtime_days = 45
62- time = np .datetime64 ("2025-01-01" ) + np .arange (self .runtime_days + 1 ) * np .timedelta64 (1 , "D" )
61+ time = np .datetime64 ("2025-01-01" ) + np .arange (self .runtime_days + 1 ) * np .timedelta64 (1 , "D" )
6362 lon = np .linspace (- 180 , 180 , 120 )
6463 lat = np .linspace (- 90 , 90 , 100 )
6564
@@ -112,7 +111,6 @@ def setup(self):
112111 # uppermost layer in the hydrodynamic data
113112 fieldset .mindepth = fieldset .U .depth [0 ]
114113 # Define a new Particle type including extra Variables
115-
116114
117115 ArgoParticle = self .particle_type .add_variables (
118116 [
@@ -129,6 +127,7 @@ def time_run_many_timesteps(self):
129127 [ArgoVerticalMovement , AdvectionRK4 ], runtime = timedelta (days = self .runtime_days ), dt = timedelta (seconds = 30 )
130128 )
131129
132- # How do we derive benchmarks ?
130+
131+ # How do we derive benchmarks ?
133132# class ArgoFloatScipy(ArgoFloatJIT):
134133# particle_type = ScipyParticle
0 commit comments