sxs-collaboration / gwsurrogate

An easy to use interface to gravitational wave surrogate models
Other
24 stars 22 forks source link

'wget' dependency not mentioned in the documentation #19

Open OliverJennrich opened 3 years ago

OliverJennrich commented 3 years ago

Documentation should mention dependency on 'wget'. Alternatively, pul() should fail with an appropriate error message if 'wget' cannot be found/executed. At the moment it fails silently.

Suggestion: In line 252 in catalog.py check the return of os.systeM('wget....') through os.WEXITSTATUS() and fail if it is not zero, i.e.

if os.WEXITSTATUS( os.system('wget -q --directory-prefix='+sdir+' '+surr_url)) >0: raise ValueError("wget not installed")

duetosymmetry commented 3 years ago

For this one and #20, maybe we should just move away from using wget to fetch data. We can use urllib.request (the legacy function urlretrieve writes to disk for you and hasn't been deprecated yet). Do we really need to use wget?