88
99def make_standard_simulation_settings ():
1010 simulation_settings = {'startdate' : datetime .strptime ('2020-01-04-00:00:00' , '%Y-%m-%d-%H:%M:%S' ),
11- 'runtime' : timedelta (days = 2 ),
12- 'outputdt' : timedelta (hours = 1 ),
13- 'dt' : timedelta (minutes = 20 ),
14- }
11+ 'runtime' : timedelta (days = 2 ),
12+ 'outputdt' : timedelta (hours = 1 ),
13+ 'dt' : timedelta (minutes = 20 ),
14+ }
1515 return simulation_settings
1616
1717
1818def make_standard_plastictype_settings ():
19- #Use tiny wind percentage because test data set is not large and wind speeds are quick!
20- plastictype_settings = {'wind_coefficient' : 0.0001 , # Percentage of wind to apply to particles
21- 'plastic_diameter' : 0.001 , # Plastic particle diameter (m)
22- 'plastic_density' : 1030. , # Plastic particle density (kg/m^3)
23- }
19+ # Use tiny wind percentage because test data set is not large and wind speeds are quick!
20+ plastictype_settings = {'wind_coefficient' : 0.0001 , # Percentage of wind to apply to particles
21+ 'plastic_diameter' : 0.001 , # Plastic particle diameter (m)
22+ 'plastic_density' : 1030. , # Plastic particle density (kg/m^3)
23+ }
2424 return plastictype_settings
2525
2626
@@ -30,7 +30,7 @@ def make_standard_particleset(fieldset, settings):
3030 pset = pp .constructors .create_particleset_from_map (fieldset , settings )
3131
3232 # Only keep particles in the test domain
33- keep_particles = (pset .lon > 17 ) & (pset .lon < 20 ) & (pset .lat < 36 ) & (pset .lat > 34 )
33+ keep_particles = (pset .lon > 17 ) & (pset .lon < 20 ) & (pset .lat < 36 ) & (pset .lat > 34 )
3434 pset .remove_booleanvector (~ keep_particles )
3535
3636 return pset
@@ -59,7 +59,7 @@ def test_advection_only(use_3D):
5959 kernels = [parcels .application_kernels .AdvectionRK4_3D , pp .kernels .checkThroughBathymetry , pp .kernels .checkErrorThroughSurface , pp .kernels .deleteParticle ]
6060 else :
6161 kernels = [parcels .application_kernels .AdvectionRK4 , pp .kernels .deleteParticle ]
62-
62+
6363 pset = make_standard_particleset (fieldset , settings )
6464
6565 start_lons = pset .lon .copy ()
@@ -222,8 +222,8 @@ def test_mixing():
222222 pp .kernels .checkErrorThroughSurface , pp .kernels .deleteParticle ]
223223
224224 kernels_mixing = [parcels .application_kernels .AdvectionRK4_3D , pp .kernels .VerticalMixing ,
225- pp .kernels .checkThroughBathymetry , pp .kernels .checkErrorThroughSurface ,
226- pp .kernels .deleteParticle ]
225+ pp .kernels .checkThroughBathymetry , pp .kernels .checkErrorThroughSurface ,
226+ pp .kernels .deleteParticle ]
227227
228228 pset = make_standard_particleset (fieldset , settings )
229229 pset_mixing = make_standard_particleset (fieldset , settings )
0 commit comments