Skip to content

Commit

Permalink
Slight fixes in the examples(#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matic Lubej authored Sep 6, 2023
1 parent 7fb9bb5 commit 4693f13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions examples/io/SentinelHubIO.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@
"metadata": {},
"outputs": [],
"source": [
"add_dem = SentinelHubDemTask(data_collection=DataCollection.DEM_COPERNICUS_30, resolution=resolution, config=config)"
"add_dem = SentinelHubDemTask(\n",
" feature=\"dem\", data_collection=DataCollection.DEM_COPERNICUS_30, resolution=resolution, config=config\n",
")"
]
},
{
Expand Down Expand Up @@ -711,7 +713,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
"version": "3.10.4"
},
"toc": {
"base_numbering": 1,
Expand Down
4 changes: 2 additions & 2 deletions examples/water-monitor/WaterMonitorWorkflow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,8 @@
" observed = closing(eopatch.mask[\"WATER_MASK\"][idx, ..., 0], disk(1))\n",
" nominal = sobel(eopatch.mask_timeless[\"NOMINAL_WATER\"][..., 0])\n",
" observed = sobel(observed)\n",
" nominal = np.ma.masked_where(~nominal, nominal)\n",
" observed = np.ma.masked_where(~observed, observed)\n",
" nominal = np.ma.masked_where(~nominal.astype(bool), nominal)\n",
" observed = np.ma.masked_where(~observed.astype(bool), observed)\n",
"\n",
" ax.imshow(nominal, cmap=plt.cm.Reds)\n",
" ax.imshow(observed, cmap=plt.cm.Blues)\n",
Expand Down

0 comments on commit 4693f13

Please sign in to comment.