Skip to content

Commit

Permalink
minor nits to icechunk noaa append ex
Browse files Browse the repository at this point in the history
  • Loading branch information
norlandrhagen committed Feb 11, 2025
1 parent b652523 commit a258b9e
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions examples/append/noaa-cdr-sst.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,6 @@
"Please ensure the correct dependencies are installed before starting."
]
},
{
"cell_type": "markdown",
"id": "b3a6769f",
"metadata": {},
"source": [
"\n",
"## Warning\n",
" This example is failing due to icechunk/virtualizarr/zarr v3 issues: https://github.com/zarr-developers/zarr-python/issues/2800\n"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -125,6 +115,16 @@
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "c025f35d",
"metadata": {},
"outputs": [],
"source": [
"virtual_ds"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -207,7 +207,8 @@
"metadata": {},
"outputs": [],
"source": [
"ds = xr.open_zarr(repo, consolidated=False, zarr_format=3)\n",
"read_session = repo.readonly_session(branch=\"main\")\n",
"ds = xr.open_zarr(read_session.store, consolidated=False, zarr_format=3)\n",
"ds"
]
},
Expand Down Expand Up @@ -279,7 +280,7 @@
"metadata": {},
"outputs": [],
"source": [
"repo.commit(\"wrote 2 more days of data\")"
"append_session.commit(\"wrote 2 more days of data\")"
]
},
{
Expand All @@ -297,7 +298,7 @@
"metadata": {},
"outputs": [],
"source": [
"read_session = repo.readonly_session(\"main\")"
"read_session = repo.readonly_session(branch=\"main\")"
]
},
{
Expand All @@ -314,7 +315,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "scratch",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand Down

0 comments on commit a258b9e

Please sign in to comment.