Skip to content

Commit

Permalink
Update erddap_data_processors.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gmaze committed Sep 26, 2024
1 parent e7a47c7 commit 6f74686
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions argopy/data_fetchers/erddap_data_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ def pre_process(
>>> from distributed.protocol.serialize import ToPickle
>>> serialize(ToPickle(post_process))
Parameters
----------
ds: :class:`xarray.Dataset`
Dataset to process
Returns
-------
:class:`xarray.Dataset`
"""
if this_ds is None:
return None
Expand All @@ -44,8 +53,6 @@ def pre_process(

# Cast data types:
this_ds = this_ds.argo.cast_types()
# if '999' in to_list(np.unique(this_ds['PLATFORM_NUMBER'].values)):
# log.error(this_ds.attrs)

# With BGC, some points may not have a PLATFORM_NUMBER !
# So, we remove these
Expand Down

0 comments on commit 6f74686

Please sign in to comment.