Skip to content

Commit

Permalink
#44 Cambiados los separadores
Browse files Browse the repository at this point in the history
  • Loading branch information
jasag committed Apr 29, 2017
1 parent db2921e commit 385698f
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions code/notebooks/Image_Labeler.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 138,
"metadata": {
"collapsed": true,
"extensions": {
Expand Down Expand Up @@ -80,7 +80,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 139,
"metadata": {
"extensions": {
"jupyter_dashboards": {
Expand Down Expand Up @@ -150,7 +150,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 140,
"metadata": {
"collapsed": true,
"extensions": {
Expand Down Expand Up @@ -244,7 +244,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 141,
"metadata": {
"collapsed": true,
"extensions": {
Expand Down Expand Up @@ -318,7 +318,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 142,
"metadata": {
"collapsed": true,
"extensions": {
Expand Down Expand Up @@ -375,7 +375,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 143,
"metadata": {
"collapsed": true,
"extensions": {
Expand Down Expand Up @@ -443,7 +443,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 144,
"metadata": {
"extensions": {
"jupyter_dashboards": {
Expand Down Expand Up @@ -1130,7 +1130,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 145,
"metadata": {
"collapsed": true,
"extensions": {
Expand Down Expand Up @@ -1180,7 +1180,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 146,
"metadata": {
"collapsed": true,
"extensions": {
Expand Down Expand Up @@ -1238,7 +1238,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 147,
"metadata": {
"collapsed": true,
"extensions": {
Expand Down Expand Up @@ -1315,7 +1315,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 148,
"metadata": {
"collapsed": true,
"extensions": {
Expand Down Expand Up @@ -1382,7 +1382,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 149,
"metadata": {
"collapsed": true,
"extensions": {
Expand Down Expand Up @@ -1443,7 +1443,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 150,
"metadata": {
"collapsed": true,
"extensions": {
Expand Down Expand Up @@ -1559,7 +1559,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 151,
"metadata": {
"collapsed": true,
"extensions": {
Expand Down Expand Up @@ -1611,7 +1611,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 152,
"metadata": {
"collapsed": true,
"extensions": {
Expand Down Expand Up @@ -1650,10 +1650,8 @@
"def on_save_btn_click(ch):\n",
" #Obtenemos el nombre de la imagen\n",
" image_path = image_labeler.image\n",
" image_name = image_path.split(\"\\\\\")\n",
" image_name = image_name[len(image_name)-1]\n",
" image_name = image_name.split(\".\")\n",
" image_name = image_name[0]\n",
" image_name = os.path.split(image_path)[1]\n",
" image_name = image_name.split(\".\")[0]\n",
" # Cargamos imágen\n",
" image = io.imread(image_path)\n",
" \n",
Expand Down Expand Up @@ -1693,7 +1691,8 @@
" # Realizamos una copía para la posterior realización \n",
" # del fichero json con las claves siendo el tipo de fitolito \n",
" # y no el path\n",
" coords_dict_copy[path.split(\"\\\\\")[-2]] = coords_set\n",
" key = os.path.split(os.path.split(path)[0])[1]\n",
" coords_dict_copy[key] = coords_set\n",
" #print(\">JSON to save before\", coords_dict)\n",
" #print(\">JSON to save\", coords_dict_copy)\n",
" save_coords_as_json(coords_dict_copy, dir_manager.get_default_dir(), image_name)\n",
Expand Down Expand Up @@ -1738,7 +1737,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 153,
"metadata": {
"collapsed": true,
"extensions": {
Expand Down Expand Up @@ -1799,7 +1798,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 154,
"metadata": {
"collapsed": true,
"extensions": {
Expand Down Expand Up @@ -1869,7 +1868,7 @@
},
"widgets": {
"state": {
"ee9d715c794046959fee3f6fc03f1f47": {
"caffd6c101f442e4a5b90982bb913c22": {
"views": [
{
"cell_index": 26
Expand Down

0 comments on commit 385698f

Please sign in to comment.