Skip to content

Commit

Permalink
update from_lemi_02 path and doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kkappler committed Oct 19, 2024
1 parent 6190706 commit 6b4dc88
Showing 1 changed file with 29 additions and 12 deletions.
41 changes: 29 additions & 12 deletions notebooks/aurora/07_lemi_magdelena.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
"\n",
"and in the shortcourse :\n",
"\n",
"`notebooks/mth5/06a_make_mth5_from_lemi.ipynb`"
"`notebooks/mth5/06_make_mth5_from_lemi.ipynb`\n",
"`notebooks/mth5/06a_make_mth5_from_lemi.ipynb`\n",
"\n",
"This notebook is set up to use the output from `notebooks/mth5/06_make_mth5_from_lemi.ipynb` (not 6a)."
]
},
{
Expand Down Expand Up @@ -53,6 +56,18 @@
"## Set up the path to the file"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "57a8a24e-2718-46f5-84f2-f3eb70f35e8e",
"metadata": {},
"outputs": [],
"source": [
"here = Path(\".\").absolute()\n",
"mth5_path = here.parent.joinpath(\"mth5\", \"from_lemi_02.h5\")\n",
"assert(mth5_path.exists())"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand All @@ -71,22 +86,24 @@
}
],
"source": [
"file_base = \"from_lemi.h5\"\n",
"source_folder = Path().home().joinpath(\"shared\", \"shortcourses\", \"mt\", \"lemi\")\n",
"source_file = source_folder.joinpath(file_base)\n",
"assert(source_file.exists())\n",
"# Sample code for moving files from shared drive\n",
"\n",
"here = Path(\".\").absolute()\n",
"target_folder = here.parent.parent.joinpath(\"data\", \"timeseries\", \"lemi\")\n",
"target_folder.mkdir(exist_ok=True, parents=True)\n",
"destination_file = target_folder.joinpath(file_base)\n",
"# file_base = \"from_lemi.h5\"\n",
"# source_folder = Path().home().joinpath(\"shared\", \"shortcourses\", \"mt\", \"lemi\")\n",
"# source_file = source_folder.joinpath(file_base)\n",
"# assert(source_file.exists())\n",
"\n",
"# here = Path(\".\").absolute()\n",
"# target_folder = here.parent.parent.joinpath(\"data\", \"timeseries\", \"lemi\")\n",
"# target_folder.mkdir(exist_ok=True, parents=True)\n",
"# destination_file = target_folder.joinpath(file_base)\n",
"\n",
"shutil.copyfile(source_file, destination_file)\n",
"# shutil.copyfile(source_file, destination_file)\n",
"\n",
"mth5_path = destination_file\n",
"# mth5_path = destination_file\n",
"\n",
"\n",
"mth5_path.exists()"
"#mth5_path.exists()"
]
},
{
Expand Down

0 comments on commit 6b4dc88

Please sign in to comment.