ulmo-dev / ulmo

clean, simple and fast access to public hydrology and climatology data.
http://ulmo.readthedocs.org
Other
169 stars 63 forks source link

Add optional flag to send CUAHSI suds cache files to user ulmo app directory #190

Closed emiliom closed 4 years ago

emiliom commented 4 years ago

Provide an option to write CUAHSI suds cache files to user app ulmo directory, to avoid problems with the user not having permission to write cache files to the system tmp space.

emiliom commented 4 years ago

Implemented in #191

All cuahsi.wof and cuahsi.his_central requests now have an optional user_cache argument. user_cache=True will result in cache files written into the local app ulmo dir as a suds subdirectory. eg, on Ubuntu: ~/.local/share/ulmo/suds

Adapted solution from https://stackoverflow.com/questions/28351699/python-3-suds-cache-not-working/29032926#29032926