Skip to content

Commit e68a895

Browse files
ebolchjhkennedy
authored andcommitted
start load function for results classes
1 parent ffbfddd commit e68a895

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

earthaccess/search.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,3 +935,11 @@ def doi(self, doi: str) -> Self:
935935
)
936936

937937
return self
938+
939+
def load(self):
940+
# TODO - Handle paging (get all)
941+
self._granules = self.get()
942+
943+
@property
944+
def granules(self):
945+
return self._granules

0 commit comments

Comments
 (0)