We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0c5cd0 commit 521b359Copy full SHA for 521b359
earthaccess/search.py
@@ -980,6 +980,9 @@ def __eq__(self, other: 'DataGranules') -> bool:
980
return self.granules == other.granules
981
982
# TODO: display methods
983
- def __repr__(self) -> str:
984
- reprs = ", ".join([granule.__repr__() for granule in self.granules])
985
- return f'DataGranules([{reprs}])'
+ def __repr__(self):
+
+ if (count := len(self)) > 0:
986
+ return f'DataGranules().parameters({self.params}).load({count})'
987
988
+ return f'DataGranules().parameters({self.params})'
0 commit comments