Skip to content

Commit

Permalink
RandomGeoSampler: optional length is optional (#1907)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart authored and isaaccorley committed Mar 2, 2024
1 parent 1395525 commit 76c46a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchgeo/samplers/single.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __init__(
self,
dataset: GeoDataset,
size: Union[tuple[float, float], float],
length: Optional[int],
length: Optional[int] = None,
roi: Optional[BoundingBox] = None,
units: Units = Units.PIXELS,
) -> None:
Expand Down

0 comments on commit 76c46a4

Please sign in to comment.