Skip to content

Commit

Permalink
hot fix ee login
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanzvonkov committed Oct 14, 2022
1 parent 9ff4bf9 commit c12a154
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openmapflow/ee_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ class EarthEngineAPI:

def __init__(self, credentials=None) -> None:
ee.Initialize(
ee.Initialize(credentials if credentials else get_ee_credentials()),
credentials if credentials else get_ee_credentials(),
opt_url="https://earthengine-highvolume.googleapis.com",
)

Expand Down
3 changes: 2 additions & 1 deletion openmapflow/notebooks/create_map.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@
" \"https://www.googleapis.com/auth/earthengine\",\n",
"]\n",
"CREDENTIALS, _ = google.auth.default(default_scopes=SCOPES)\n",
"os.environ[\"GOOGLE_CLOUD_PROJECT\"] = GCLOUD_PROJECT_ID"
"os.environ[\"GOOGLE_CLOUD_PROJECT\"] = GCLOUD_PROJECT_ID\n",
"ee.Initialize(CREDENTIALS, project=GCLOUD_PROJECT_ID)"
]
},
{
Expand Down

0 comments on commit c12a154

Please sign in to comment.