DataSource.open(path, mode='r')[source]
Open and return file-like object.
If path
is an URL, it will be downloaded, stored in the DataSource
directory and opened from there.
Parameters: |
path : str Local file path or URL to open. mode : {‘r’, ‘w’, ‘a’}, optional Mode to open |
---|---|
Returns: |
out : file object File object. |
© 2008–2016 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.11.0/reference/generated/numpy.DataSource.open.html