Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle ValueError in get_onc_ctd salinity resampling
xarray version 2023.05.0 introduced a ValueError exception raised when a DataArray being resampled is empty. We previously handled that condition by catching an IndexError. Now we catch ValueError too. The change to ValueError for an empty salinity DataArray didn't show up in production until the 14jun24 update of the production environment brought xarray version 2024.06.0 into use.
- Loading branch information