Skip to content

Commit

Permalink
Improve comments and logs about arg paths
Browse files Browse the repository at this point in the history
  • Loading branch information
adriantre committed Sep 28, 2023
1 parent 2157321 commit a5d3d6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions torchgeo/datasets/geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def __init__(
cache: if True, cache file handle to speed up repeated sampling
Raises:
FileNotFoundError: if no files are found in ``root``
FileNotFoundError: if no files are found in ``paths``
"""
super().__init__(transforms)

Expand Down Expand Up @@ -396,7 +396,8 @@ def __init__(

if i == 0:
msg = (
f"No {self.__class__.__name__} data was found in `root='{self.paths}'`"
f"No {self.__class__.__name__} data was found "
f"in `paths={self.paths!r}'`"
)
if self.bands:
msg += f" with `bands={self.bands}`"
Expand Down

0 comments on commit a5d3d6e

Please sign in to comment.