From 3c9b9d1f208a21062c9bda288b3dadc57867dc7b Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Sun, 10 Nov 2024 13:00:37 +0100 Subject: [PATCH] Million-AID, ForestDamage: fix _verify docstring --- torchgeo/datasets/forestdamage.py | 6 +----- torchgeo/datasets/millionaid.py | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/torchgeo/datasets/forestdamage.py b/torchgeo/datasets/forestdamage.py index 885ac21a471..9c3de28a2b5 100644 --- a/torchgeo/datasets/forestdamage.py +++ b/torchgeo/datasets/forestdamage.py @@ -217,11 +217,7 @@ def _load_target( return boxes, labels def _verify(self) -> None: - """Checks the integrity of the dataset structure. - - Returns: - True if the dataset directories are found, else False - """ + """Verify the integrity of the dataset.""" filepath = os.path.join(self.root, self.data_dir) if os.path.isdir(filepath): return diff --git a/torchgeo/datasets/millionaid.py b/torchgeo/datasets/millionaid.py index 14e0ba7dc12..b7111da1962 100644 --- a/torchgeo/datasets/millionaid.py +++ b/torchgeo/datasets/millionaid.py @@ -312,11 +312,7 @@ def _load_image(self, path: Path) -> Tensor: return tensor def _verify(self) -> None: - """Checks the integrity of the dataset structure. - - Returns: - True if the dataset directories are found, else False - """ + """Verify the integrity of the dataset.""" filepath = os.path.join(self.root, self.split) if os.path.isdir(filepath): return