Skip to content

Commit 8326777

Browse files
committed
nan_like isn't a function, and from old bug this didn't get run. Now using full_like, filling with np.nan for cases where particle amounts are not provided.
1 parent ec00498 commit 8326777

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.nan_like(lons)
229+
plastic_amounts = np.full_like(lons, np.nan)
230230

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

0 commit comments

Comments
 (0)