From ddb2b64c544f6e1e97eea97463b35379505ff5cc Mon Sep 17 00:00:00 2001 From: Nils Lehmann <35272119+nilsleh@users.noreply.github.com> Date: Wed, 29 Jan 2025 10:05:03 +0100 Subject: [PATCH] rm line (#2545) --- torchgeo/datasets/bigearthnet.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/torchgeo/datasets/bigearthnet.py b/torchgeo/datasets/bigearthnet.py index ef62ac1a2..8900bc9c9 100644 --- a/torchgeo/datasets/bigearthnet.py +++ b/torchgeo/datasets/bigearthnet.py @@ -495,10 +495,9 @@ class BigEarthNet(NonGeoDataset): filename: output filename to write downloaded file md5: md5 of downloaded file """ - if not os.path.exists(filename): - download_url( - url, self.root, filename=filename, md5=md5 if self.checksum else None - ) + download_url( + url, self.root, filename=filename, md5=md5 if self.checksum else None + ) def _extract(self, filepath: Path) -> None: """Extract the dataset.