Skip to content

Commit 7d3348f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1e08f59 commit 7d3348f

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

asv_bench/benchmarks/benchmark_argofloat.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
from datetime import timedelta
22

33
import numpy as np
4-
import pandas as pd
54
import 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

109
def 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

Comments
 (0)