From d4505ed9a90757f3bdb15ca2abc9b6b79b406856 Mon Sep 17 00:00:00 2001 From: Erik Bolch Date: Thu, 31 Oct 2024 13:24:01 -0500 Subject: [PATCH] start load function for results classes --- earthaccess/search.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/earthaccess/search.py b/earthaccess/search.py index 3a2b458d..69cc454d 100644 --- a/earthaccess/search.py +++ b/earthaccess/search.py @@ -935,3 +935,11 @@ def doi(self, doi: str) -> Self: ) return self + + def load(self): + # TODO - Handle paging (get all) + self._granules = self.get() + + @property + def granules(self): + return self._granules