Skip to content

Commit

Permalink
commenting out async iceflow orders so notebooks run faster
Browse files Browse the repository at this point in the history
  • Loading branch information
betolink committed Jun 13, 2023
1 parent 9f275ab commit 12b9bbd
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: "Install Conda environment with Micromamba"
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba
with:
cache-env: true
environment-file: binder/environment.yml
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: "Install Conda environment with Micromamba"
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba
with:
cache-env: true
environment-file: ${{ matrix.environment-file }}
Expand Down
2 changes: 1 addition & 1 deletion notebooks/SnowEx_ASO_MODIS_Snow/Snow-tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@
"source": [
"from pathlib import Path\n",
"\n",
"path = Path(\".\").absolute() / \"Data\"\n",
"path = Path(\".\") / \"Data\"\n",
"\n",
"if not os.path.exists(path):\n",
" os.mkdir(path)\n",
Expand Down
9 changes: 6 additions & 3 deletions notebooks/iceflow/0_introduction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,9 @@
"metadata": {},
"outputs": [],
"source": [
"orders = client.place_data_orders(params=my_params)\n",
"orders = []\n",
"# IMPORTANT: uncomment the following line to place the order\n",
"# orders = client.place_data_orders(params=my_params)\n",
"orders"
]
},
Expand Down Expand Up @@ -455,8 +457,9 @@
},
"outputs": [],
"source": [
"# ICESat-2 + ICESat/GLAS \n",
"orders = client.place_data_orders(params=my_params)"
"# IMPORTANT: uncomment the following line to place the order\n",
"\n",
"# orders = client.place_data_orders(params=my_params)"
]
},
{
Expand Down
11 changes: 6 additions & 5 deletions notebooks/iceflow/1_widget.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"**Note:** To view the widget output you need to enable Jupyter's log console. You can activate the console by clicking the right-most icon at the bottom of your browser <img src='./img/log-icons.png'> or by slecting “View” >> “Show log console” on the menu bar."
"**Note:** To view the widget output you need to enable Jupyter's log console. You can activate the console by clicking the right-most icon at the bottom of your browser <img src='./img/log-icons.png'> or by slecting “View” >> “Show log console” on the menu bar.\n",
"\n",
"Let's start loading the user interface. Next, we will explain all options and user interface components.\n",
"vertical = Sidecar widget, horizontal = render the widget in this notebook. Note that depending on your screen size and resolution the 'vertical' display option may not work correctly. This is a current bug in the jupyter-widget that can not be solved within the scope of IceFlow."
]
},
{
Expand All @@ -73,10 +76,6 @@
},
"outputs": [],
"source": [
"# Let's start loading the user interface. Next, we will explain all options and user interface components.\n",
"# vertical = Sidecar widget, horizontal = render the widget in this notebook.\n",
"# Note that depending on your screen size and resolution the 'vertical' display option may not work correctly.\n",
"# This is a current bug in the jupyter-widget that can not be solved within the scope of IceFlow.\n",
"ui.display_map('horizontal', extra_layers=True)"
]
},
Expand All @@ -85,6 +84,8 @@
"metadata": {},
"source": [
"#### IceFlow user interface (UI) components\n",
"\n",
"\n",
"This user interface uses [*ipyleaflet*](https://blog.jupyter.org/interactive-gis-in-jupyter-with-ipyleaflet-52f9657fa7a) which allows us to draw\n",
"polygons or bounding boxes to delimit our area of interest. We can also edit and delete these geometries using the widget controls in the map.\n",
"<br> \n",
Expand Down
16 changes: 11 additions & 5 deletions notebooks/iceflow/2_api.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,23 @@
"granules = ifc.query_cmr(my_params)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Now we order the data, this is an asynchronous process. Asynchronous downloads allow concurrent requests to be queued and processed without the need for a continuous connection. The maximum granule count per asynchronous request is 2000. When the order is complete.\n",
"Now you can proceed to download the IceFlow data granule."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Now we order the data, this is an asynchronous process. \n",
"# Asynchronous downloads allow concurrent requests to be queued and processed without the need for a continuous connection. \n",
"# The maximum granule count per asynchronous request is 2000. When the order is complete\n",
"# Now you can proceed to download the IceFlow data granule.\n",
"orders = ifc.place_data_orders(my_params)\n",
"orders = []\n",
"# Uncomment the following line to place the orders!\n",
"# orders = ifc.place_data_orders(my_params)\n",
"orders"
]
},
Expand Down

0 comments on commit 12b9bbd

Please sign in to comment.