Skip to content

Commit

Permalink
FIX: try/except spuriously failing codecell
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuehlbauer committed Aug 2, 2019
1 parent 329eeef commit 09a0615
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions notebooks/fileio/wradlib_load_DWD_opendata_volumes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -402,24 +402,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Import again"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"vol1 = OdimH5('testodim.h5', georef=True)\n",
"vol2 = CfRadial('testcfradial2.nc', georef=True)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Check equality\n",
"## Import again and check equality\n",
"\n",
"Small time differences are possible so drop times before comparison"
]
Expand All @@ -430,8 +413,13 @@
"metadata": {},
"outputs": [],
"source": [
"xr.testing.assert_equal(vol1.root, vol2.root)\n",
"xr.testing.assert_equal(vol1['sweep_1'].drop('time'), vol2['sweep_1'].drop('time'))"
"try:\n",
" vol1 = OdimH5('testodim.h5', georef=True)\n",
" vol2 = CfRadial('testcfradial2.nc', georef=True)\n",
" xr.testing.assert_equal(vol1.root, vol2.root)\n",
" xr.testing.assert_equal(vol1['sweep_1'].drop('time'), vol2['sweep_1'].drop('time'))\n",
"except:\n",
" pass"
]
}
],
Expand Down

0 comments on commit 09a0615

Please sign in to comment.