ioos / pyoos

A Python library for collecting Met/Ocean observations
GNU Lesser General Public License v3.0
33 stars 33 forks source link

Intermittent timeouts using ndbc and coops collectors. #47

Open dharhas opened 9 years ago

dharhas commented 9 years ago

I'm getting intermittent timeouts using ndbc and coops collectors. These are happening fairly often but not consistently enough to debug effectively. I see that owslib is being called under the hood and that has a timeout kwarg. Is there anyway to pass a timeout kwarg when instantiating the pyoos collectors? I didn't see one while poking around.

dharhas commented 9 years ago

ok I think I worked this out, you can pass additional kwargs to owslib through the 'raw' call i.e.

ndbc = NdbcSos() (set start/end time, vars etc...) ndbc.raw(responseFormat="text/csv", timeout=120)

might be worth adding this to the readme somwhere...

ocefpaf commented 8 years ago

Same for IoosSweSos.

ocefpaf commented 8 years ago

The example notebooks do not address this (yet). Let's keep it open to remind us.