Skip to content

Commit

Permalink
Remove calls to rio.parse_path (maintain compat with rasterio==1.3) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
carderne authored Jul 7, 2022
1 parent 82f7a75 commit a1be4f1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
32 changes: 16 additions & 16 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ planetary-computer = {version = ">= 0.4.3, < 1", optional = true}
pyproj = "^3.0.0"
pystac-client = {version = "^0.3", optional = true}
python = "^3.8"
rasterio = "^1.2.3"
rasterio = "^1.3.0"
sat-search = {version = "^0.3.0", optional = true}
scipy = {version = "^1.6.1", optional = true}
sphinx-autodoc-typehints = {version = "^1.18.3", optional = true}
Expand Down
4 changes: 2 additions & 2 deletions stackstac/rio_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def _open(self) -> Union[SelfCleaningDatasetReader, WarpedVRT]:
with self._env.open:
with time(f"Reopen {self._url!r} in {_curthread()}: {{t}}"):
result = ds = SelfCleaningDatasetReader(
rio.parse_path(self._url),
self._url,
sharing=False,
driver=self._driver,
**self._open_options,
Expand Down Expand Up @@ -324,7 +324,7 @@ def _open(self) -> ThreadsafeRioDataset:
with time(f"Initial read for {self.url!r} on {_curthread()}: {{t}}"):
try:
ds = SelfCleaningDatasetReader(
rio.parse_path(self.url), sharing=False
self.url, sharing=False
)
except Exception as e:
msg = f"Error opening {self.url!r}: {e!r}"
Expand Down

0 comments on commit a1be4f1

Please sign in to comment.