Skip to content

Commit

Permalink
refactor: adapt to planet_model
Browse files Browse the repository at this point in the history
  • Loading branch information
dfguerrerom committed May 29, 2024
1 parent b9e33be commit 894b5c4
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions ui.ipynb
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<center><h1 class=\"text-center h3\" id=\"loading-app\">Setting things up for you... Thanks for waiting!</h1></center>"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -24,7 +17,8 @@
"outputs": [],
"source": [
"from component import tile\n",
"from component import model"
"from component import model\n",
"from sepal_ui.planetapi import PlanetView"
]
},
{
Expand Down Expand Up @@ -55,14 +49,23 @@
"test_tile = tile.TestTile(file_tile)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"planet_view = PlanetView()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"viz_model = model.VizModel()\n",
"viz_input_tile = tile.InputTile(viz_model, tb_model)"
"viz_input_tile = tile.InputTile(viz_model, tb_model, planet_view=planet_view)"
]
},
{
Expand All @@ -75,7 +78,13 @@
"# result tile\n",
"export_results = tile.ExportResult()\n",
"# export data\n",
"export_tile = tile.ExportData(export_model, viz_model, tb_model, export_results)"
"export_tile = tile.ExportData(\n",
" export_model,\n",
" viz_model,\n",
" tb_model,\n",
" export_results,\n",
" planet_model=planet_view.planet_model,\n",
")"
]
},
{
Expand Down Expand Up @@ -162,4 +171,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}

0 comments on commit 894b5c4

Please sign in to comment.