Skip to content

Commit 100410f

Browse files
committed
corrections to tutorials
1 parent c8a4a14 commit 100410f

4 files changed

Lines changed: 474 additions & 170 deletions

Tutorials_as_Jupyter_Notebooks/ECCO_v4_Heat_budget_closure.ipynb

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@
114114
"import sys\n",
115115
"import glob\n",
116116
"\n",
117+
"from os.path import join,expanduser,exists,split\n",
118+
"user_home_dir = expanduser('~')\n",
119+
"\n",
117120
"\n",
118121
"# indicate whether you are working in a cloud instance (True if yes, False otherwise)\n",
119122
"incloud_access = True"
@@ -455,27 +458,6 @@
455458
"client"
456459
]
457460
},
458-
{
459-
"cell_type": "code",
460-
"execution_count": 4,
461-
"metadata": {},
462-
"outputs": [],
463-
"source": [
464-
"## Import the ecco_v4_py library into Python\n",
465-
"## =========================================\n",
466-
"## If ecco_v4_py is not installed in your local Python library, \n",
467-
"## tell Python where to find it. The example below adds\n",
468-
"## ecco_v4_py to the user's path if it is stored in the folder\n",
469-
"## ECCOv4-py under the user's home directory\n",
470-
"\n",
471-
"from os.path import join,expanduser,exists,split\n",
472-
"user_home_dir = expanduser('~')\n",
473-
"\n",
474-
"sys.path.append(join(user_home_dir,'ECCOv4-py'))\n",
475-
"\n",
476-
"import ecco_v4_py as ecco"
477-
]
478-
},
479461
{
480462
"cell_type": "code",
481463
"execution_count": 5,
@@ -570,6 +552,24 @@
570552
" download_root_dir=ECCO_dir)"
571553
]
572554
},
555+
{
556+
"cell_type": "code",
557+
"execution_count": 4,
558+
"metadata": {},
559+
"outputs": [],
560+
"source": [
561+
"## Import the ecco_v4_py library into Python\n",
562+
"## =========================================\n",
563+
"## If ecco_v4_py is not installed in your local Python library, \n",
564+
"## tell Python where to find it. The example below adds\n",
565+
"## ecco_v4_py to the user's path if it is stored in the folder\n",
566+
"## ECCOv4-py under the user's home directory\n",
567+
"\n",
568+
"sys.path.append(join(user_home_dir,'ECCOv4-py'))\n",
569+
"\n",
570+
"import ecco_v4_py as ecco"
571+
]
572+
},
573573
{
574574
"cell_type": "code",
575575
"execution_count": 8,

0 commit comments

Comments
 (0)