From 9e0627fa33ff166c27f0dd3e03403e65c9c226ef Mon Sep 17 00:00:00 2001 From: Sieger Falkena Date: Wed, 18 Sep 2024 15:43:22 +0200 Subject: [PATCH] remove explicit GeoDataFrame return value --- torchgeo/samplers/single.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/torchgeo/samplers/single.py b/torchgeo/samplers/single.py index da544a264d1..05bdf32f314 100644 --- a/torchgeo/samplers/single.py +++ b/torchgeo/samplers/single.py @@ -281,7 +281,7 @@ def get_chips(self) -> GeoDataFrame: """Generate chips from the dataset. Returns: - GeoDataFrame: A GeoDataFrame containing the generated chips. + A GeoDataFrame containing the generated chips. """ chips = [] for _ in tqdm(range(self.length)): @@ -380,7 +380,7 @@ def get_chips(self) -> GeoDataFrame: """Generates chips from the given hits. Returns: - GeoDataFrame: A GeoDataFrame containing the generated chips. + A GeoDataFrame containing the generated chips. """ print('generating samples... ') self.length = 0 @@ -462,7 +462,7 @@ def get_chips(self) -> GeoDataFrame: """Generate chips from the hits and return them as a GeoDataFrame. Returns: - GeoDataFrame: A GeoDataFrame containing the generated chips. + A GeoDataFrame containing the generated chips. """ generator: Callable[[int], Iterable[int]] = range if self.shuffle: