Skip to content

Commit

Permalink
remove redundant ee.initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
dfguerrerom committed Jun 24, 2024
1 parent 6bdd5dc commit 399c1fc
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions component/scripts/compute_areas.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

from .utils import pixel_count, to_hectar

ee.Initialize()


def create_hist(result_dir, map_raster, alert):

Expand Down
1 change: 0 additions & 1 deletion component/scripts/gdrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

class gdrive(object):
def __init__(self):
self.initialize = ee.Initialize()
# Access to sepal access token
self.access_token = json.loads(
(Path.home() / ".config/earthengine/credentials").read_text()
Expand Down
2 changes: 0 additions & 2 deletions component/scripts/gee.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

from component.message import cm

ee.Initialize()


def wait_for_completion(task_descripsion, widget_alert):
"""Wait until the selected process is finished. Display some output information
Expand Down
2 changes: 0 additions & 2 deletions component/scripts/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

from sepal_ui.mapping import SepalMap

ee.Initialize()


def display_gfc_map(aoi_model, model, m: SepalMap, alert):
alert.add_live_msg("Loading tiles")
Expand Down

0 comments on commit 399c1fc

Please sign in to comment.