Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Mar 26, 2024
1 parent be96a04 commit ee3d480
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notebooks/wp5/satellite_sea_ice_conc_climate_change.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"metadata": {},
"outputs": [],
"source": [
"for region, da_region in ds[\"extent\"].groupby(\"region\"):\n",
"for region, da_region in ds[\"extent\"].groupby(\"region\", squeeze=False):\n",
" for reduction in (\"min\", \"max\"):\n",
" da = compute_yearly_extremes(da_region, reduction)\n",
" da.plot(hue=\"product\", marker=\"^\")\n",
Expand All @@ -321,8 +321,8 @@
"metadata": {},
"outputs": [],
"source": [
"for product, ds_product in ds.drop(\"rms_error\").groupby(\"product\"):\n",
" for region, ds_region in ds_product.groupby(\"region\"):\n",
"for product, ds_product in ds.drop(\"rms_error\").groupby(\"product\", squeeze=False):\n",
" for region, ds_region in ds_product.groupby(\"region\", squeeze=False):\n",
" facet = plot_against_dayofyear(ds_region)\n",
" facet.fig.suptitle(f\"{product=} {region=}\", y=1.01)\n",
" plt.show()"
Expand Down

0 comments on commit ee3d480

Please sign in to comment.