Skip to content

Commit

Permalink
Undo changes to CDL
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Sep 15, 2021
1 parent 2a123a8 commit bc1e7ea
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions torchgeo/datasets/cdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,11 @@ def __init__(
if download:
self._download()

if self.checksum:
if not self._check_integrity():
raise RuntimeError(
"Dataset not found or corrupted. "
+ "You can use download=True to download it"
)
if not self._check_integrity():
raise RuntimeError(
"Dataset not found or corrupted. "
+ "You can use download=True to download it"
)

super().__init__(root, crs, res, transforms, cache)

Expand Down

0 comments on commit bc1e7ea

Please sign in to comment.