Skip to content

Commit

Permalink
Fix typo in download error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Jul 9, 2022
1 parent 722d458 commit 632d580
Show file tree
Hide file tree
Showing 26 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion tests/datasets/test_bigearthnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def test_already_downloaded_not_extracted(
def test_not_downloaded(self, tmp_path: Path) -> None:
err = "Dataset not found in `root` directory and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"to automaticaly download the dataset."
"to automatically download the dataset."
with pytest.raises(RuntimeError, match=err):
BigEarthNet(str(tmp_path))

Expand Down
2 changes: 1 addition & 1 deletion tests/datasets/test_eurosat.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_already_downloaded_not_extracted(
def test_not_downloaded(self, tmp_path: Path) -> None:
err = "Dataset not found in `root` directory and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"to automaticaly download the dataset."
"to automatically download the dataset."
with pytest.raises(RuntimeError, match=err):
EuroSAT(str(tmp_path))

Expand Down
2 changes: 1 addition & 1 deletion tests/datasets/test_idtrees.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_already_downloaded(self, dataset: IDTReeS) -> None:
def test_not_downloaded(self, tmp_path: Path) -> None:
err = "Dataset not found in `root` directory and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"to automaticaly download the dataset."
"to automatically download the dataset."
with pytest.raises(RuntimeError, match=err):
IDTReeS(str(tmp_path))

Expand Down
2 changes: 1 addition & 1 deletion tests/datasets/test_nasa_marine_debris.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_already_downloaded_not_extracted(
def test_not_downloaded(self, tmp_path: Path) -> None:
err = "Dataset not found in `root` directory and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"to automaticaly download the dataset."
"to automatically download the dataset."
with pytest.raises(RuntimeError, match=err):
NASAMarineDebris(str(tmp_path))

Expand Down
2 changes: 1 addition & 1 deletion tests/datasets/test_patternnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def test_already_downloaded_not_extracted(
def test_not_downloaded(self, tmp_path: Path) -> None:
err = "Dataset not found in `root` directory and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"to automaticaly download the dataset."
"to automatically download the dataset."
with pytest.raises(RuntimeError, match=err):
PatternNet(str(tmp_path))

Expand Down
2 changes: 1 addition & 1 deletion tests/datasets/test_resisc45.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_already_downloaded_not_extracted(
def test_not_downloaded(self, tmp_path: Path) -> None:
err = "Dataset not found in `root` directory and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"to automaticaly download the dataset."
"to automatically download the dataset."
with pytest.raises(RuntimeError, match=err):
RESISC45(str(tmp_path))

Expand Down
2 changes: 1 addition & 1 deletion tests/datasets/test_ucmerced.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def test_already_downloaded_not_extracted(
def test_not_downloaded(self, tmp_path: Path) -> None:
err = "Dataset not found in `root` directory and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"to automaticaly download the dataset."
"to automatically download the dataset."
with pytest.raises(RuntimeError, match=err):
UCMerced(str(tmp_path))

Expand Down
2 changes: 1 addition & 1 deletion tests/datasets/test_zuericrop.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_already_downloaded(self, dataset: ZueriCrop) -> None:
def test_not_downloaded(self, tmp_path: Path) -> None:
err = "Dataset not found in `root` directory and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"to automaticaly download the dataset."
"to automatically download the dataset."
with pytest.raises(RuntimeError, match=err):
ZueriCrop(str(tmp_path))

Expand Down
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 @@ -104,7 +104,7 @@ def _verify(self) -> None:
raise RuntimeError(
f"Dataset not found in `root={self.root}` and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"to automaticaly download the dataset."
"to automatically download the dataset."
)

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

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

# Download the dataset
Expand Down
4 changes: 2 additions & 2 deletions torchgeo/datasets/chesapeake.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def _verify(self) -> None:
raise RuntimeError(
f"Dataset not found in `root={self.root}` and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"to automaticaly download the dataset."
"to automatically download the dataset."
)

# Download the dataset
Expand Down Expand Up @@ -672,7 +672,7 @@ def exists(filename: str) -> bool:
raise RuntimeError(
f"Dataset not found in `root={self.root}` and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"to automaticaly download the dataset."
"to automatically download the dataset."
)

# Download the dataset
Expand Down
2 changes: 1 addition & 1 deletion torchgeo/datasets/enviroatlas.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def exists(filename: str) -> bool:
raise RuntimeError(
f"Dataset not found in `root={self.root}` and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"to automaticaly download the dataset."
"to automatically download the dataset."
)

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

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

# Download and extract the dataset
Expand Down
2 changes: 1 addition & 1 deletion torchgeo/datasets/idtrees.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def _verify(self) -> None:
raise RuntimeError(
"Dataset not found in `root` directory and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"to automaticaly download the dataset."
"to automatically download the dataset."
)

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

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

# TODO: need a checksum check in here post downloading
Expand Down
2 changes: 1 addition & 1 deletion torchgeo/datasets/oscd.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def _verify(self) -> None:
raise RuntimeError(
f"Dataset not found in `root={self.root}` and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"to automaticaly download the dataset."
"to automatically download the dataset."
)

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

# Download and extract the dataset
Expand Down
2 changes: 1 addition & 1 deletion torchgeo/datasets/resisc45.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def _verify(self) -> None:
raise RuntimeError(
"Dataset not found in `root` directory and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"to automaticaly download the dataset."
"to automatically download the dataset."
)

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

# Download the dataset
Expand Down
4 changes: 2 additions & 2 deletions torchgeo/datasets/spacenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def __init__(
raise RuntimeError(
f"Dataset not found in `root={self.root}` and `download=False`, "
"either specify a different `root` directory or use "
"`download=True` to automaticaly download the dataset."
"`download=True` to automatically download the dataset."
)
else:
self._download(to_be_downloaded, api_key)
Expand Down Expand Up @@ -1220,7 +1220,7 @@ def __init__(
raise RuntimeError(
f"Dataset not found in `root={self.root}` and `download=False`, "
"either specify a different `root` directory or use "
"`download=True` to automaticaly download the dataset."
"`download=True` to automatically download the dataset."
)
else:
self._download(to_be_downloaded, api_key)
Expand Down
2 changes: 1 addition & 1 deletion torchgeo/datasets/ucmerced.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def _verify(self) -> None:
raise RuntimeError(
"Dataset not found in `root` directory and `download=False`, "
"either specify a different `root` directory or use `download=True` "
"to automaticaly download the dataset."
"to automatically download the dataset."
)

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

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

# Download the dataset
Expand Down

0 comments on commit 632d580

Please sign in to comment.