From 7dc109367bd7a49a9dc6abc898ab210564c53478 Mon Sep 17 00:00:00 2001 From: Elsa Culler Date: Wed, 5 Jun 2024 11:36:22 -0600 Subject: [PATCH] Update appeears.py --- earthpy/appeears.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/earthpy/appeears.py b/earthpy/appeears.py index b1b4e6cc..17f685aa 100644 --- a/earthpy/appeears.py +++ b/earthpy/appeears.py @@ -98,6 +98,8 @@ def __init__( if os.path.exists(self.task_id_path): with open(self.task_id_path, 'r') as task_id_file: self._task_id = task_id_file.readline() + elif 'APPEEARS_TASKID' in os.environ: + self._task_id = os.environ['APPEEARS_TASKID'] else: self._task_id = None @@ -345,4 +347,4 @@ def download_files(self, cache=True): f.write(data) # Remove task id file when download is complete - os.remove(self.task_id_path) \ No newline at end of file + os.remove(self.task_id_path)