Skip to content

Commit

Permalink
Adding optional internet connection, exciting if file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jordancaraballo committed Mar 7, 2025
1 parent 892385d commit b6e1de2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.2"
__version__ = "0.0.4"
5 changes: 5 additions & 0 deletions model/CCDCPipeline.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import re
import json
import ee
Expand Down Expand Up @@ -119,6 +120,10 @@ def gen_single_image(
gee_account = config.get('gee_account')
gee_key = config.get('gee_key_path')

# if the file exists, move on and do not process
if os.path.exists(outfile):
return

try:
credentials = self._get_gee_credential(gee_account, gee_key)
ee.Initialize(credentials)
Expand Down

0 comments on commit b6e1de2

Please sign in to comment.