From a0a63bea0762e893e0831520e145bfe934061ea4 Mon Sep 17 00:00:00 2001 From: rflperry Date: Mon, 3 Jan 2022 11:42:59 -0500 Subject: [PATCH] rename functions to repo name --- .vscode/settings.json | 3 +++ notebooks/DN_notebook.ipynb | 4 ++-- notebooks/RF_notebook.ipynb | 4 ++-- {functions => partition_decode}/__init__.py | 0 {functions => partition_decode}/complexity_measures_log.py | 0 {functions => partition_decode}/dataset.py | 0 {functions => partition_decode}/df_utils.py | 0 {functions => partition_decode}/dn_utils.py | 0 {functions => partition_decode}/forest.py | 0 {functions => partition_decode}/metrics.py | 0 {functions => partition_decode}/network.py | 0 {functions => partition_decode}/plots.py | 0 setup.py | 2 +- 13 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 .vscode/settings.json rename {functions => partition_decode}/__init__.py (100%) rename {functions => partition_decode}/complexity_measures_log.py (100%) rename {functions => partition_decode}/dataset.py (100%) rename {functions => partition_decode}/df_utils.py (100%) rename {functions => partition_decode}/dn_utils.py (100%) rename {functions => partition_decode}/forest.py (100%) rename {functions => partition_decode}/metrics.py (100%) rename {functions => partition_decode}/network.py (100%) rename {functions => partition_decode}/plots.py (100%) diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..cdc89a5 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.pythonPath": "/mnt/ssd3/ronan/miniconda3/envs/proglearn/bin/python" +} \ No newline at end of file diff --git a/notebooks/DN_notebook.ipynb b/notebooks/DN_notebook.ipynb index 6846151..14b54df 100644 --- a/notebooks/DN_notebook.ipynb +++ b/notebooks/DN_notebook.ipynb @@ -11,7 +11,7 @@ "sys.path.append(\"../\")\n", "\n", "import numpy as np\n", - "from functions import run_dn_experiments, read_dn_results, run_internal_rep_experiment, plot_dn_results " + "from partition_decode import run_dn_experiments, read_dn_results, run_internal_rep_experiment, plot_dn_results " ] }, { @@ -177,4 +177,4 @@ }, "nbformat": 4, "nbformat_minor": 2 -} +} \ No newline at end of file diff --git a/notebooks/RF_notebook.ipynb b/notebooks/RF_notebook.ipynb index 478b0dd..86ad733 100644 --- a/notebooks/RF_notebook.ipynb +++ b/notebooks/RF_notebook.ipynb @@ -33,7 +33,7 @@ "\n", "sys.path.append(\"../\")\n", "\n", - "from functions import run_df_experiment, read_df_results, plot_df_results" + "from partition_decode import run_df_experiment, read_df_results, plot_df_results" ] }, { @@ -177,4 +177,4 @@ }, "nbformat": 4, "nbformat_minor": 1 -} +} \ No newline at end of file diff --git a/functions/__init__.py b/partition_decode/__init__.py similarity index 100% rename from functions/__init__.py rename to partition_decode/__init__.py diff --git a/functions/complexity_measures_log.py b/partition_decode/complexity_measures_log.py similarity index 100% rename from functions/complexity_measures_log.py rename to partition_decode/complexity_measures_log.py diff --git a/functions/dataset.py b/partition_decode/dataset.py similarity index 100% rename from functions/dataset.py rename to partition_decode/dataset.py diff --git a/functions/df_utils.py b/partition_decode/df_utils.py similarity index 100% rename from functions/df_utils.py rename to partition_decode/df_utils.py diff --git a/functions/dn_utils.py b/partition_decode/dn_utils.py similarity index 100% rename from functions/dn_utils.py rename to partition_decode/dn_utils.py diff --git a/functions/forest.py b/partition_decode/forest.py similarity index 100% rename from functions/forest.py rename to partition_decode/forest.py diff --git a/functions/metrics.py b/partition_decode/metrics.py similarity index 100% rename from functions/metrics.py rename to partition_decode/metrics.py diff --git a/functions/network.py b/partition_decode/network.py similarity index 100% rename from functions/network.py rename to partition_decode/network.py diff --git a/functions/plots.py b/partition_decode/plots.py similarity index 100% rename from functions/plots.py rename to partition_decode/plots.py diff --git a/setup.py b/setup.py index adcbd52..cd6cd19 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ # Find mgc version. PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) -for line in open(os.path.join(PROJECT_PATH, "functions", "__init__.py")): +for line in open(os.path.join(PROJECT_PATH, "partition_decode", "__init__.py")): if line.startswith("__version__ = "): VERSION = line.strip().split()[2][1:-1]