Skip to content

Commit

Permalink
maybe fix nimbus
Browse files Browse the repository at this point in the history
  • Loading branch information
RondeauG committed Nov 18, 2024
1 parent e7dd5c3 commit f31b798
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docs/notebooks/4_ensembles.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@
"outputs": [],
"source": [
"import xarray as xr\n",
"\n",
"# from xclim.testing.utils import nimbus\n",
"from xclim.testing import open_dataset\n",
"from xclim.testing.utils import nimbus\n",
"\n",
"import xscen as xs\n",
"\n",
Expand All @@ -56,9 +54,10 @@
"}\n",
"\n",
"for d in datasets:\n",
" # file = nimbus().fetch(datasets[d]) # There is currently a bug in xclim 0.53.2\n",
" # ds = xr.open_dataset(file).isel(lon=slice(0, 4), lat=slice(0, 4))\n",
" ds = open_dataset(datasets[d]).isel(lon=slice(0, 4), lat=slice(0, 4))\n",
" file = nimbus(repo=\"https://github.com/Ouranosinc/xclim-testdata\").fetch(\n",
" datasets[d]\n",
" )\n",
" ds = xr.open_dataset(file).isel(lon=slice(0, 4), lat=slice(0, 4))\n",
" ds = xs.climatological_op(\n",
" ds,\n",
" op=\"mean\",\n",
Expand Down

0 comments on commit f31b798

Please sign in to comment.