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
We had several discussions about skipping observation stations not being easy enough. This was basically due to the fact that many exceptions occur up ti 5 calling level lower than the actual station loop. While trying to implement a skipping procedure for #636 I think I have found the smoking gun to actually make that easy.
The station loop is here:
logger.warning(f"Failed to convert to StationData Error: {repr(e)}")
out_data["failed"].append([idx, repr(e)])
returnout_data
As you can see there are already some exceptions that are handled. For #636 if I add the NotImplementedError exception, that station is just skipped and the code does what it should do.
The same should be possible with other exceptions.
Let's discuss that in the next user meeting
The text was updated successfully, but these errors were encountered:
We had several discussions about skipping observation stations not being easy enough. This was basically due to the fact that many exceptions occur up ti 5 calling level lower than the actual station loop. While trying to implement a skipping procedure for #636 I think I have found the smoking gun to actually make that easy.
The station loop is here:
pyaerocom/pyaerocom/ungriddeddata.py
Lines 1233 to 1236 in f1b209d
As you can see there are already some exceptions that are handled. For #636 if I add the
NotImplementedError
exception, that station is just skipped and the code does what it should do.The same should be possible with other exceptions.
Let's discuss that in the next user meeting
The text was updated successfully, but these errors were encountered: