From 28a7c7451c245c3203ee455d93f9aaea1e4be0d0 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Thu, 4 Feb 2021 15:10:14 +0100 Subject: [PATCH] Rename existing notebooks using order numbers --- research/{r_dependencies.ipynb => 00_r_dependencies.ipynb} | 2 +- research/{clean_data.ipynb => 01_clean_data.ipynb} | 4 ++-- src/urban_meal_delivery/init_r.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename research/{r_dependencies.ipynb => 00_r_dependencies.ipynb} (99%) rename research/{clean_data.ipynb => 01_clean_data.ipynb} (99%) diff --git a/research/r_dependencies.ipynb b/research/00_r_dependencies.ipynb similarity index 99% rename from research/r_dependencies.ipynb rename to research/00_r_dependencies.ipynb index e2e1dc6..707c506 100644 --- a/research/r_dependencies.ipynb +++ b/research/00_r_dependencies.ipynb @@ -114,7 +114,7 @@ " shutil.rmtree(r_libs_path)\n", "except FileNotFoundError:\n", " pass\n", - "os.mkdir(r_libs_path)" + "os.makedirs(r_libs_path)" ] }, { diff --git a/research/clean_data.ipynb b/research/01_clean_data.ipynb similarity index 99% rename from research/clean_data.ipynb rename to research/01_clean_data.ipynb index 3c7fdee..1d9f6fb 100644 --- a/research/clean_data.ipynb +++ b/research/01_clean_data.ipynb @@ -192,7 +192,7 @@ "source": [ "%cd -q ..\n", "!alembic upgrade f11cd76d2f45\n", - "%cd -q notebooks" + "%cd -q research" ] }, { @@ -7647,7 +7647,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.5" + "version": "3.8.6" } }, "nbformat": 4, diff --git a/src/urban_meal_delivery/init_r.py b/src/urban_meal_delivery/init_r.py index 189a0dc..9afc8c6 100644 --- a/src/urban_meal_delivery/init_r.py +++ b/src/urban_meal_delivery/init_r.py @@ -3,7 +3,7 @@ The purpose of this module is to import all the R packages that are installed into a sub-folder (see `config.R_LIBS_PATH`) in the project's root directory. -The Jupyter notebook "research/r_dependencies.ipynb" can be used to install all +The Jupyter notebook "research/00_r_dependencies.ipynb" can be used to install all R dependencies on a Ubuntu/Debian based system. """ @@ -24,5 +24,5 @@ try: # noqa:WPS229 rpackages.importr('zoo') except rpackages.PackageNotInstalledError: # pragma: no cover - msg = 'See the "research/r_dependencies.ipynb" notebook!' + msg = 'See the "research/00_r_dependencies.ipynb" notebook!' raise rpackages.PackageNotInstalledError(msg) from None