Skip to content

Commit

Permalink
Fix another path/root inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Nov 10, 2023
1 parent 4630477 commit af22063
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion torchgeo/datasets/agb_live_woody_density.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def _verify(self) -> None:
if not self.download:
raise RuntimeError(
f"Dataset not found in `paths={self.paths!r}` and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"either specify a different `paths` or use `download=True` "
"to automatically download the dataset."
)

Expand Down
2 changes: 1 addition & 1 deletion torchgeo/datasets/astergdem.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _verify(self) -> None:

raise RuntimeError(
f"Dataset not found in `paths={self.paths!r}` "
"either specify a different `root` directory or make sure you "
"either specify a different `paths` or make sure you "
"have manually downloaded dataset tiles as suggested in the documentation."
)

Expand Down
2 changes: 1 addition & 1 deletion torchgeo/datasets/cdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def _verify(self) -> None:
if not self.download:
raise RuntimeError(
f"Dataset not found in `paths={self.paths!r}` and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"either specify a different `paths` or use `download=True` "
"to automatically download the dataset."
)

Expand Down
2 changes: 1 addition & 1 deletion torchgeo/datasets/chesapeake.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def _verify(self) -> None:
if not self.download:
raise RuntimeError(
f"Dataset not found in `paths={self.paths!r}` and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"either specify a different `paths` or use `download=True` "
"to automatically download the dataset."
)

Expand Down
2 changes: 1 addition & 1 deletion torchgeo/datasets/cms_mangrove_canopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def _verify(self) -> None:

raise RuntimeError(
f"Dataset not found in `paths={self.paths!r}` "
"either specify a different `root` directory or make sure you "
"either specify a different `paths` or make sure you "
"have manually downloaded the dataset as instructed in the documentation."
)

Expand Down
2 changes: 1 addition & 1 deletion torchgeo/datasets/esri2020.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _verify(self) -> None:
if not self.download:
raise RuntimeError(
f"Dataset not found in `paths={self.paths!r}` and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"either specify a different `paths` or use `download=True` "
"to automatically download the dataset."
)

Expand Down
2 changes: 1 addition & 1 deletion torchgeo/datasets/eudem.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def _verify(self) -> None:

raise RuntimeError(
f"Dataset not found in `paths={self.paths!r}` "
"either specify a different `root` directory or make sure you "
"either specify a different `paths` or make sure you "
"have manually downloaded the dataset as suggested in the documentation."
)

Expand Down
2 changes: 1 addition & 1 deletion torchgeo/datasets/globbiomass.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def _verify(self) -> None:

raise RuntimeError(
f"Dataset not found in `paths={self.paths!r}` "
"either specify a different `root` directory or make sure you "
"either specify a different `paths` or make sure you "
"have manually downloaded the dataset as suggested in the documentation."
)

Expand Down
2 changes: 1 addition & 1 deletion torchgeo/datasets/l7irish.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _verify(self) -> None:
if not self.download:
raise RuntimeError(
f"Dataset not found in `paths={self.paths!r}` and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"either specify a different `paths` or use `download=True` "
"to automatically download the dataset."
)

Expand Down
2 changes: 1 addition & 1 deletion torchgeo/datasets/l8biome.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def _verify(self) -> None:
if not self.download:
raise RuntimeError(
f"Dataset not found in `paths={self.paths!r}` and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"either specify a different `paths` or use `download=True` "
"to automatically download the dataset."
)

Expand Down
2 changes: 1 addition & 1 deletion torchgeo/datasets/nlcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def _verify(self) -> None:
if not self.download:
raise RuntimeError(
f"Dataset not found in `paths={self.paths!r}` and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"either specify a different `paths` or use `download=True` "
"to automatically download the dataset."
)

Expand Down
2 changes: 1 addition & 1 deletion torchgeo/datasets/openbuildings.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def _verify(self) -> None:

raise RuntimeError(
f"Dataset not found in `paths={self.paths!r}` "
"either specify a different `root` directory or make sure you "
"either specify a different `paths` or make sure you "
"have manually downloaded the dataset as suggested in the documentation."
)

Expand Down

0 comments on commit af22063

Please sign in to comment.