Skip to content

Commit e277a55

Browse files
small fixes
1 parent 0e4eb65 commit e277a55

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

parcels/field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838

3939
def _isParticle(key):
40-
if hasattr(key, "obs_written"):
40+
if hasattr(key, "_data"):
4141
return True
4242
else:
4343
return False

parcels/particleset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def lonlatdepth_dtype_from_field_interp_method(field):
227227

228228
@property
229229
def size(self):
230-
return (len(self._data["trajectory"]), len(self._data["obs"]))
230+
return len(self._data["trajectory"])
231231

232232
@property
233233
def pclass(self):

0 commit comments

Comments
 (0)