-
Notifications
You must be signed in to change notification settings - Fork 22
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
Problems downloading surrogates with fresh install #18
Comments
Maybe we should move away from relying on |
The docs describe |
Proposed fix:
|
this was fixed in #56 |
I installed from conda-forge and tried to run a few lines from @vijayvarma392, but got a couple errors when it tried to download the surrogate data. The first error was because the output directory didn't exist. So I suggest following this line
gwsurrogate/gwsurrogate/catalog.py
Line 233 in d8bb961
with
The second error was because, although I have wget installed on my machine, the conda environment the code was running in doesn't. But because wget was called with
os.system
, when the shell errored out, nothing happened, and gwsurrogates continued as if it had succeeded — which made this bug pretty hard to track down. Python now suggests using something from thesubprocess
module instead ofos.system
, so I suggest replacing this linegwsurrogate/gwsurrogate/catalog.py
Line 252 in d8bb961
with
(along with
import subprocess
somewhere up above). This should error out if wget fails, and it will show what happened.The text was updated successfully, but these errors were encountered: