Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CERA_worklow.ipynb is broken #79

Closed
pmav99 opened this issue Apr 27, 2023 · 5 comments
Closed

CERA_worklow.ipynb is broken #79

pmav99 opened this issue Apr 27, 2023 · 5 comments

Comments

@pmav99
Copy link
Member

pmav99 commented Apr 27, 2023

@SorooshMani-NOAA I tried to execute the CERA_workflow.ipynb notebook and it seems that it is broken. You get a traceback in cell 7, but the root problem is in cell 6:

usgs_stations_w_param = usgs_stations[usgs_stations.parm_cd.isin(params_of_interest)]
is_active = (datetime.now() - usgs_stations_w_param.end_date) < timedelta(days=3)
usgs_stations_of_interest = usgs_stations_w_param[is_active]

More specifically the end_date of usgs_station_w_param is NaT for all rows, and as a result usgs_stations_of_interest is an empty dataframe. This causes the next cell which does the actual plotting to fail.

Can you have a look?

@pmav99
Copy link
Member Author

pmav99 commented Apr 27, 2023

Actually this seems to be a pandas 2 issue. Something seems to have changed. I just installed pandas 1.5.3 and the cell runs fine. Probably something with the parsing of end_date?

@SorooshMani-NOAA
Copy link
Contributor

Aren't these addressed in #77 which is pending merge?

@pmav99
Copy link
Member Author

pmav99 commented Apr 27, 2023

You are right, this will be fixed as soon as #77 gets merged. Closing

@pmav99 pmav99 closed this as completed Apr 27, 2023
@carolakaiser
Copy link
Contributor

Hey All,
I am trying to retrieve the USGS stations for the CERA workflow and I am just running the following two lines (in a python script, python version is 3.10):

from searvey import usgs, stations
usgs_stations = usgs.get_usgs_stations()

I get a pretty lengthy error log - any idea what that could be? Thanks!

usgs_test_error.log

@pmav99
Copy link
Member Author

pmav99 commented May 23, 2023

This is a separate issue, so I opened #85 . Closing this one.

@pmav99 pmav99 closed this as completed May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants