Skip to content

Commit b195ac3

Browse files
committed
Changing from zero_like to nan_like in the create_particleset() function, when users do not provide a plastic amount per particle.
1 parent e946f9b commit b195ac3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plasticparcels/constructors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def create_particleset(fieldset, settings, release_locations):
226226
if 'plastic_amount' in release_locations.keys():
227227
plastic_amounts = release_locations['plastic_amount']
228228
else:
229-
plastic_amounts = np.zeros_like(lons)
229+
plastic_amounts = np.nan_like(lons)
230230

231231
# Set particle properties
232232
plastic_densities = np.full(lons.shape, settings['plastictype']['plastic_density'])

0 commit comments

Comments
 (0)