Skip to content

Commit

Permalink
A small whitespace issue and missing blank EOF line
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldenes committed Jun 4, 2024
1 parent 7824ed4 commit 32acc33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_kernels.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def make_standard_particleset(fieldset, settings):
pset = pp.constructors.create_particleset_from_map(fieldset, settings)

# Only keep particles in the test domain
keep_particles = (pset.lon > 17) & (pset.lon < 20) & (pset.lat < 36) & (pset.lat > 34)
keep_particles = (pset.lon > 17) & (pset.lon < 20) & (pset.lat < 36) & (pset.lat > 34)
pset.remove_booleanvector(~keep_particles)

return pset
Expand Down Expand Up @@ -232,4 +232,4 @@ def test_mixing():
pset.execute(kernels_mixing, runtime=settings['simulation']['runtime'], dt=settings['simulation']['dt'])

# Assert that the particles move from their initial location
assert (np.sum(np.abs(pset.lon - pset_mixing.lon)) > 0.) & (np.sum(np.abs(pset.lat - pset_mixing.lat)) > 0.)
assert (np.sum(np.abs(pset.lon - pset_mixing.lon)) > 0.) & (np.sum(np.abs(pset.lat - pset_mixing.lat)) > 0.)

0 comments on commit 32acc33

Please sign in to comment.