Skip to content

Commit

Permalink
remove explicit GeoDataFrame return value
Browse files Browse the repository at this point in the history
  • Loading branch information
sfalkena committed Sep 18, 2024
1 parent 5a554ff commit 9e0627f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions torchgeo/samplers/single.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 9e0627f

Please sign in to comment.