-
Notifications
You must be signed in to change notification settings - Fork 41
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
retreiving record using gwlevels fails with ValueError date in wrong format (using example provided online) #166
Comments
Hi @Ben-Choat, thanks for identifying an issue. Are you using the latest version of I just ran this line of code using the latest version of the package and it worked ok for me, but please let me know if this issue persists for you. Thanks so much! |
Hello @ehinman, Version seemed to be the issue. I just checked the version using dataretrieval.version and it came back as 0.0.0 which is very surprising. I just installed it this past Friday (the 27th) using I just tried updating using I tried specifying the version Running Building a new virtual environment with venv and installing via When I was using conda, I was trying to install in an existing conda environment, so that may have caused issues for some reason. I have not tried installing in a fresh conda environment. |
Thanks for the info, I will investigate on my machine as well. |
+1 to the 0.0.0 version issue from a conda install I did yesterday. |
Huh, that's really strange. I use a miniforge installation of mamba. I just created a fresh environment and installed |
I'll look over the logs on the conda side. I'd hoped this was fixed with the last release, but apparently not. |
Using the example linked below and provided in the official documentation fails with: ValueError: time data '1945-10-12 22:35 +0000' does not match format 'ISO8601' (match).
df = dataretrieval.nwis.get_record(
sites="434400121275801", service="gwlevels"
)
https://doi-usgs.github.io/dataretrieval-python/reference/nwis.html#dataretrieval.nwis.get_record:~:text=%23%20Get%20latest%20groundwater%20level%20for%20site%20434400121275801%0A%3E%3E%3E%20df%20%3D%20dataretrieval.nwis.get_record(%0A...%20%20%20%20%20sites%3D%22434400121275801%22%2C%20service%3D%22gwlevels%22%0A...%20)
The text was updated successfully, but these errors were encountered: