Skip to content

Commit

Permalink
Merge pull request #190 from WorldCereal/clean-notebooks
Browse files Browse the repository at this point in the history
cleaned notebooks for demo
  • Loading branch information
kvantricht authored Oct 16, 2024
2 parents b852d28 + e370e78 commit 2b49731
Show file tree
Hide file tree
Showing 11 changed files with 1,664 additions and 1,709 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions notebooks/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ def get_processing_period(self):
return TemporalContext(start, end)


def get_input(label):
while True:
modelname = input(f"Enter a short name for your {label} (don't use spaces): ")
if " " not in modelname:
return modelname
print("Invalid input. Please enter a name without spaces.")


LANDCOVER_LUT = {
10: "Unspecified cropland",
11: "Temporary crops",
Expand Down
460 changes: 94 additions & 366 deletions notebooks/worldcereal_v1_demo_custom_cropland.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 2b49731

Please sign in to comment.