From e59fc0c4f9fd2b8e7363ec93191fd213cd751119 Mon Sep 17 00:00:00 2001 From: michaeldenes Date: Wed, 4 Dec 2024 16:34:19 +0100 Subject: [PATCH] There was an issue with the unit testing, caused by a recent update to parcels. The testing data uses only 5 levels, down to 4.7m depth. Particles would cause an out of bounds error in such a case, and be deleted. Updating the density of the particles lets them still sink, but not as quickly as before. --- tests/test_kernels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_kernels.py b/tests/test_kernels.py index 765a0ef..6c77711 100644 --- a/tests/test_kernels.py +++ b/tests/test_kernels.py @@ -19,7 +19,7 @@ def make_standard_plastictype_settings(): # Use tiny wind percentage because test data set is not large and wind speeds are quick! plastictype_settings = {'wind_coefficient': 0.0001, # Percentage of wind to apply to particles 'plastic_diameter': 0.001, # Plastic particle diameter (m) - 'plastic_density': 1030., # Plastic particle density (kg/m^3) + 'plastic_density': 1027.67, # Plastic particle density (kg/m^3) } return plastictype_settings