Skip to content

Commit

Permalink
Update futures presentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
antarcticrainforest committed Sep 28, 2023
1 parent b5c74a7 commit 84e3c74
Show file tree
Hide file tree
Showing 2 changed files with 3,694 additions and 222 deletions.
50 changes: 35 additions & 15 deletions talks/FrevaFutures/FuturesExample.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"execution_count": 15,
"id": "864ce272-5d89-4719-a55a-6e5d8d011863",
"metadata": {
"slideshow": {
"slide_type": "skip"
},
"tags": []
},
"outputs": [],
Expand Down Expand Up @@ -1589,18 +1592,11 @@
{
"cell_type": "markdown",
"id": "1c8c690e-4bfd-402d-8ac6-c68c73286a4b",
"metadata": {},
"source": [
"## How can we check if the data is physically present?\n",
"\n",
"Sometimes it might be useful to check if we can use the data straight away or the data has to be re-created.\n",
"The databrowser doesn't get informed about the deletion of data automoatically. For example if we delete the data again:"
]
},
{
"cell_type": "markdown",
"id": "b3f0f75a-d088-48e1-ba11-df84a0550c2c",
"metadata": {},
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## How can we check if the data is physically present?\n",
"\n",
Expand All @@ -1613,6 +1609,9 @@
"execution_count": 24,
"id": "fb1ec4d0-1dfb-42ab-8551-50e7d5669947",
"metadata": {
"slideshow": {
"slide_type": "-"
},
"tags": []
},
"outputs": [],
Expand All @@ -1623,7 +1622,11 @@
{
"cell_type": "markdown",
"id": "faa8f2a2-6b0a-4d0e-8fa2-70cd39809890",
"metadata": {},
"metadata": {
"slideshow": {
"slide_type": "-"
}
},
"source": [
"the databrowser still shows the location on disk although the data doesn't exist anymore:"
]
Expand All @@ -1633,6 +1636,9 @@
"execution_count": 25,
"id": "e07a664b-f8c9-4cdc-b65e-0d22e195cc64",
"metadata": {
"slideshow": {
"slide_type": "-"
},
"tags": []
},
"outputs": [
Expand All @@ -1654,7 +1660,11 @@
{
"cell_type": "markdown",
"id": "0e258208-e931-4cd1-981d-53c7989c76f7",
"metadata": {},
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"We can use the `check_future` method to check for the existence for futures. Every dataset that doesn't exsit anymore will be deleted from the databrowser and replaced by the special `future://` url, indicating that this dataset doesn't exist but can be recreated. We can use a `key=value` pair search facet like for the databrowser method to sub select only certain datasets:"
]
Expand All @@ -1664,6 +1674,9 @@
"execution_count": 27,
"id": "c1898a81-6ea2-4bf3-82b3-bfdef6a66419",
"metadata": {
"slideshow": {
"slide_type": "-"
},
"tags": []
},
"outputs": [],
Expand All @@ -1674,7 +1687,11 @@
{
"cell_type": "markdown",
"id": "d354f092-13f4-45f8-89fa-09375b35990d",
"metadata": {},
"metadata": {
"slideshow": {
"slide_type": "-"
}
},
"source": [
"Let's search for the data again:"
]
Expand All @@ -1684,6 +1701,9 @@
"execution_count": 28,
"id": "6cc598f8-37ec-4da7-bd65-e5532f849847",
"metadata": {
"slideshow": {
"slide_type": "-"
},
"tags": []
},
"outputs": [
Expand Down
Loading

0 comments on commit 84e3c74

Please sign in to comment.