Skip to content
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

Add mode option for remote_open() #334

Merged
merged 1 commit into from
Mar 7, 2021

Conversation

dopplershift
Copy link
Member

Description Of Changes

This allows getting back the results of remote_open() using a StringIO object, rather than BytesIO. This is useful e.g. to pass to MetPy's parsing functions. The call works as:

cat = TDSCatalog(url)
fobj = cat.datasets[0].remote_open(mode='t', errors='replace')

Checklist

  • Tests added
  • Fully documented

This allows getting back the results of remote_open() using a StringIO
object, rather than BytesIO. This is useful e.g. to pass to MetPy's
parsing functions.
@dopplershift dopplershift added this to the 0.9 milestone Mar 5, 2021
@dopplershift dopplershift merged commit 4bc8772 into Unidata:master Mar 7, 2021
@dopplershift dopplershift deleted the remote-open branch March 15, 2021 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant