You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a possible bug with how we access xarray data found in #468. While that specific issue was solved by using xarray notation to bypass the index acces via pysat, the error analysis is documented here to help with future flake8 compliance pulls and potential bugs in other instruments. The issue arises when trying to set 2D data via indices, ie,
IndexError: arrays used as indices must be of integer or boolean type
It's possible that the real error is masked by the bare except statement. If I remove the try/except statement to force the main line, I get the following error at 566
KeyError: "not all values found in index 'Altitude'"
Solution needed: sort out what error the except statement is supposed to catch, then debug from there.
The text was updated successfully, but these errors were encountered:
Tracked down the source of the error. When passing >1D data, the except statement winds up trying to pass mixed indices (in the case above, a datetime index and integers). This needs to be updated using the latest xarray standards.
There is a possible bug with how we access xarray data found in #468. While that specific issue was solved by using xarray notation to bypass the index acces via pysat, the error analysis is documented here to help with future flake8 compliance pulls and potential bugs in other instruments. The issue arises when trying to set 2D data via indices, ie,
This can be traced to the
except
path here:pysat/pysat/_instrument.py
Lines 565 to 569 in ec81344
The error triggered at 568 is
It's possible that the real error is masked by the bare except statement. If I remove the try/except statement to force the main line, I get the following error at 566
Solution needed: sort out what error the except statement is supposed to catch, then debug from there.
The text was updated successfully, but these errors were encountered: