Skip to content

Commit a3e3b7c

Browse files
committed
Quiet CLI data download to shorten the datasets-prepare notebook
1 parent 12003b0 commit a3e3b7c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

jupyter-notebooks/crop-classification/datasets-prepare.ipynb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,14 @@
8888
"source": [
8989
"# First test if scene file exists, if not, use the Planet commandline tool to download the image, metadata, and udm.\n",
9090
"# This command assumes a bash shell, available in Unix-based operating systems.\n",
91-
"!test -f $train_scene || \\\n",
92-
" planet data download \\\n",
91+
"!test -f $train_scene\n",
92+
"\n",
93+
"!planet data download \\\n",
9394
" --item-type PSOrthoTile \\\n",
9495
" --dest $train_dir \\\n",
9596
" --asset-type analytic,analytic_xml \\\n",
96-
" --string-in id $train_scene_id"
97+
" --string-in id $train_scene_id \\\n",
98+
" --quiet"
9799
]
98100
},
99101
{
@@ -136,7 +138,7 @@
136138
"source": [
137139
"# First test if scene file exists, if not, use the Planet commandline tool to download the image, metadata, and udm.\n",
138140
"# This command assumes a bash shell, available in Unix-based operating systems.\n",
139-
"!test -f $test_scene || \\\n",
141+
"!test -f $test_scene |\n",
140142
" planet data download \\\n",
141143
" --item-type PSOrthoTile \\\n",
142144
" --dest $test_dir \\\n",
@@ -802,7 +804,7 @@
802804
],
803805
"metadata": {
804806
"kernelspec": {
805-
"display_name": "Python 3",
807+
"display_name": "Python 3 (ipykernel)",
806808
"language": "python",
807809
"name": "python3"
808810
},
@@ -816,7 +818,7 @@
816818
"name": "python",
817819
"nbconvert_exporter": "python",
818820
"pygments_lexer": "ipython3",
819-
"version": "3.6.6"
821+
"version": "3.8.13"
820822
}
821823
},
822824
"nbformat": 4,

0 commit comments

Comments
 (0)