Skip to content

Commit

Permalink
Update pytest_gee/__init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
12rambau authored Jan 30, 2025
1 parent 37f7238 commit d4ca07f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_gee/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def init_ee_from_service_account():
# connect to GEE using a a ServiceAccountCredential object based on the
# private key data
ee_user = json.loads(private_key)["client_email"]
credentials = ee.ServiceAccountCredentials(ee_user, private_key)
credentials = ee.ServiceAccountCredentials(ee_user, key_data=private_key)
ee.Initialize(
credentials=credentials, project=credentials.project_id, http_transport=httplib2.Http()
)
Expand Down

0 comments on commit d4ca07f

Please sign in to comment.