When running the new version of Parcels (v2.2.0) I encountered the following error, resultant from the 'fieldset.add_field' function:
Traceback (most recent call last):
File "<ipython-input-2-9ef56b7b0821>", line 71, in <module>
chunksize=chunksize)
File "/home/ccardoso/Cenas/Academico/OOM/CleanAtlantic/OceanParcels/My_scripts/CleanAtlantic_Madeira/Functions/MyParcels_fieldset.py", line 132, in get_roms
fieldset_final.add_field(taux)
File "/home/ccardoso/anaconda3/lib/python3.7/site-packages/parcels/fieldset.py", line 151, in add_field
if fld.grid == g_set:
AttributeError: 'SummedField' object has no attribute 'grid'
As the message suggests, this new grid verification to "avoid re-processing/overwriting existing and working fields" does not account for the usage of Summed_Fields... Editing the if statement in line 151 to:
if isinstance(fld, Field) and fld.grid == g_set:
solves the error, but is only a quick fix because the verification is still not dealt with appropriately.
Hello all,
When running the new version of Parcels (v2.2.0) I encountered the following error, resultant from the 'fieldset.add_field' function:
As the message suggests, this new grid verification to "avoid re-processing/overwriting existing and working fields" does not account for the usage of Summed_Fields... Editing the if statement in line 151 to:
solves the error, but is only a quick fix because the verification is still not dealt with appropriately.
Cheers, Cláudio