Skip to content

Commit 6694cbd

Browse files
authored
Fix another path/root inconsistency (#1717)
1 parent 4630477 commit 6694cbd

12 files changed

+12
-12
lines changed

torchgeo/datasets/agb_live_woody_density.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def _verify(self) -> None:
103103
if not self.download:
104104
raise RuntimeError(
105105
f"Dataset not found in `paths={self.paths!r}` and `download=False`, "
106-
"either specify a different `root` directory or use `download=True` "
106+
"either specify a different `paths` or use `download=True` "
107107
"to automatically download the dataset."
108108
)
109109

torchgeo/datasets/astergdem.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def _verify(self) -> None:
8989

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

torchgeo/datasets/cdl.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def _verify(self) -> None:
315315
if not self.download:
316316
raise RuntimeError(
317317
f"Dataset not found in `paths={self.paths!r}` and `download=False`, "
318-
"either specify a different `root` directory or use `download=True` "
318+
"either specify a different `paths` or use `download=True` "
319319
"to automatically download the dataset."
320320
)
321321

torchgeo/datasets/chesapeake.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def _verify(self) -> None:
157157
if not self.download:
158158
raise RuntimeError(
159159
f"Dataset not found in `paths={self.paths!r}` and `download=False`, "
160-
"either specify a different `root` directory or use `download=True` "
160+
"either specify a different `paths` or use `download=True` "
161161
"to automatically download the dataset."
162162
)
163163

torchgeo/datasets/cms_mangrove_canopy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def _verify(self) -> None:
245245

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

torchgeo/datasets/esri2020.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _verify(self) -> None:
126126
if not self.download:
127127
raise RuntimeError(
128128
f"Dataset not found in `paths={self.paths!r}` and `download=False`, "
129-
"either specify a different `root` directory or use `download=True` "
129+
"either specify a different `paths` or use `download=True` "
130130
"to automatically download the dataset."
131131
)
132132

torchgeo/datasets/eudem.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def _verify(self) -> None:
140140

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

torchgeo/datasets/globbiomass.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def _verify(self) -> None:
226226

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

torchgeo/datasets/l7irish.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def _verify(self) -> None:
150150
if not self.download:
151151
raise RuntimeError(
152152
f"Dataset not found in `paths={self.paths!r}` and `download=False`, "
153-
"either specify a different `root` directory or use `download=True` "
153+
"either specify a different `paths` or use `download=True` "
154154
"to automatically download the dataset."
155155
)
156156

torchgeo/datasets/l8biome.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def _verify(self) -> None:
149149
if not self.download:
150150
raise RuntimeError(
151151
f"Dataset not found in `paths={self.paths!r}` and `download=False`, "
152-
"either specify a different `root` directory or use `download=True` "
152+
"either specify a different `paths` or use `download=True` "
153153
"to automatically download the dataset."
154154
)
155155

torchgeo/datasets/nlcd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def _verify(self) -> None:
210210
if not self.download:
211211
raise RuntimeError(
212212
f"Dataset not found in `paths={self.paths!r}` and `download=False`, "
213-
"either specify a different `root` directory or use `download=True` "
213+
"either specify a different `paths` or use `download=True` "
214214
"to automatically download the dataset."
215215
)
216216

torchgeo/datasets/openbuildings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def _verify(self) -> None:
423423

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

0 commit comments

Comments
 (0)