Skip to content

Commit b02b95b

Browse files
committed
update image link in colab notebook
1 parent ea312e3 commit b02b95b

1 file changed

Lines changed: 25 additions & 17 deletions

File tree

index-Colab.ipynb

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@
7878
"source": [
7979
"# Input/output options\n",
8080
"args = WorkflowInputs(\n",
81-
" images=[\"FLIR0077.csv\"],\n",
82-
" names=\"image1\",\n",
83-
" result=\"thermal_data.json\",\n",
84-
" outdir=\".\",\n",
85-
" writeimg=True,\n",
86-
" debug=\"plot\")"
81+
" images=[\"https://raw.githubusercontent.com/danforthcenter/plantcv-tutorial-thermal/main/FLIR0077.csv\"], \n",
82+
" names=\"image1\",\n",
83+
" result=\"thermal_data.json\",\n",
84+
" outdir=\".\",\n",
85+
" writeimg=True,\n",
86+
" debug=\"plot\")"
8787
]
8888
},
8989
{
@@ -105,15 +105,23 @@
105105
},
106106
{
107107
"cell_type": "markdown",
108-
"id": "887affa6",
108+
"id": "4e9c6640",
109109
"metadata": {},
110110
"source": [
111-
"## Read the input image\n",
111+
"## Read input image \n",
112112
"\n",
113-
"Inputs:\n",
114-
"\n",
115-
"filename = Image file to be read in\n",
116-
"mode = How the image will be read into the notebook; either 'native' (default), 'rgb', 'rgba', 'gray', 'csv', 'envi' (hyper- and multi-spectral), or 'arcgis'. "
113+
"### Google Colaboratory Users: \n",
114+
"If you are running this notebook using Google Colaboratory, you will need to use the cell below to complete the tutorial unless you cloned the repository from GitHub to your personal Google Drive account. Once you begin developing your workflow for your data, you can delete this text cell and the code cell below so you avoid any conflicts the next time you use this notebook."
115+
]
116+
},
117+
{
118+
"cell_type": "code",
119+
"execution_count": null,
120+
"id": "4acd972c",
121+
"metadata": {},
122+
"outputs": [],
123+
"source": [
124+
"img = pcv.io.open_url(url=args.image1)\n"
117125
]
118126
},
119127
{
@@ -151,12 +159,12 @@
151159
}
152160
],
153161
"source": [
154-
"# Read image\n",
162+
"# # Read image (using Jupyter notebook locally in your environment)\n",
155163
"\n",
156-
"# Inputs:\n",
157-
"# filename - Image file to be read in \n",
158-
"# mode - How to read in the image; either 'native' (default), 'rgb', 'gray', or 'csv'\n",
159-
"thermal_data, path, filename = pcv.readimage(filename=args.image1, mode='csv')"
164+
"# # Inputs:\n",
165+
"# # filename - Image file to be read in \n",
166+
"# # mode - How to read in the image; either 'native' (default), 'rgb', 'rgba', 'gray', 'csv', 'envi' (hyper- and multi-spectral), or 'arcgis'. \n",
167+
"# thermal_data, path, filename = pcv.readimage(filename=args.image1, mode='csv')"
160168
]
161169
},
162170
{

0 commit comments

Comments
 (0)