You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running sphinx to build the documentation, it frequently times out when trying to build the visualization gallery. Running
/usr/bin/time -v python -c 'import xarray as xr; xr.open_rasterio("https://github.com/mapbox/rasterio/raw/master/tests/data/RGB.byte.tif")'
reports that it takes at least 5 minutes (or time out after 10 minutes) if opened from the url. Subsequent calls use the cache, so the second rasterio example is fast.
If instead I download the file manually and then load from disk, the whole notebook completes in about 10 seconds. Also, directly calling rasterio.open completes in a few seconds, so the bug should be in open_rasterio.
I do think we should try to fix this in the backend, but maybe we could also cache RGB.byte.tif in the same directory as the xarray.tutorial data and open the cached file in the gallery?
Edit: this is really flaky, I can't reliably reproduce this.
should I extend open_dataset to also open rasterio files or would it be better to add a open_rasterio function that does that? To match the normal API, I'd go with the latter and change it when / if we switch to open_dataset(..., format="rasterio")
When running sphinx to build the documentation, it frequently times out when trying to build the visualization gallery. Running
/usr/bin/time -v python -c 'import xarray as xr; xr.open_rasterio("https://github.com/mapbox/rasterio/raw/master/tests/data/RGB.byte.tif")'
reports that it takes at least 5 minutes (or time out after 10 minutes) if opened from the url. Subsequent calls use the cache, so the second
rasterio
example is fast.If instead I download the file manually and then load from disk, the whole notebook completes in about 10 seconds. Also, directly calling
rasterio.open
completes in a few seconds, so the bug should be inopen_rasterio
.I do think we should try to fix this in the backend, but maybe we could also cache
RGB.byte.tif
in the same directory as thexarray.tutorial
data and open the cached file in the gallery?Edit: this is really flaky, I can't reliably reproduce this.
Edit2: for now, I'm using a extra cell containing
and modify both examples to use the new url
The text was updated successfully, but these errors were encountered: