Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GEE tutorial clarification #1152

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

GEE tutorial clarification #1152

wants to merge 6 commits into from

Conversation

jakeymac
Copy link
Contributor

Added a line of clarification to portions of the google earth engine tutorial's REST API section

@jakeymac jakeymac requested a review from swainn January 27, 2025 22:07
@coveralls
Copy link

coveralls commented Jan 27, 2025

Coverage Status

coverage: 100.0%. remained the same
when pulling 35df7dd on gee-tutorial-fix
into 411c87d on main.

Comment on lines +115 to +125
private_key_contents = json.load(f)
project_id = private_key_contents.get("project_id", None)

asset_roots = ee.data.listAssets({'parent': f'projects/{project_id}/assets'}).get('assets', [])
if len(asset_roots) == 0:
asset_path = f'projects/{project_id}/assets/tethys'
ee.batch.data.createAsset({
'type': 'Folder',
'name': asset_path
})
asset_roots = ee.data.listAssets({'parent': f'projects/{project_id}/assets'}).get('assets', [])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are missing an indent here? Or maybe you used tabs instead of spaces?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants