zen-garden 2.7.6__py3-none-any.whl → 2.7.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- zen_garden/__main__.py +4 -5
- {zen_garden-2.7.6.dist-info → zen_garden-2.7.8.dist-info}/METADATA +1 -1
- {zen_garden-2.7.6.dist-info → zen_garden-2.7.8.dist-info}/RECORD +5 -5
- {zen_garden-2.7.6.dist-info → zen_garden-2.7.8.dist-info}/WHEEL +0 -0
- {zen_garden-2.7.6.dist-info → zen_garden-2.7.8.dist-info}/licenses/LICENSE.txt +0 -0
zen_garden/__main__.py
CHANGED
|
@@ -29,10 +29,8 @@ def run_module(args=None, config = "./config.py", dataset = None,
|
|
|
29
29
|
"dataset specified in the config file."
|
|
30
30
|
parser = argparse.ArgumentParser(description=description, add_help=True, usage="usage: python -m zen_garden [-h] [--config CONFIG] [--dataset DATASET] [--job_index JOB_INDEX] [--job_index_var JOB_INDEX_VAR] [-- download_example EXAMPLE_NAME]")
|
|
31
31
|
# TODO make json config default
|
|
32
|
-
parser.add_argument("--config", required=False, type=str, default=config, help="
|
|
33
|
-
|
|
34
|
-
parser.add_argument("--dataset", required=False, type=str, default=dataset, help="Path to the dataset used for the run. IMPORTANT: This will overwrite the "
|
|
35
|
-
"config.analysis.dataset attribute of the config file!")
|
|
32
|
+
parser.add_argument("--config", required=False, type=str, default=config, help="Path to the config file used to run the pipeline (e.g., `./config.json`). Alternatively, if the config file is located in the current working directory, then the file name is alone is also acceptable (e.g. `config.json`).")
|
|
33
|
+
parser.add_argument("--dataset", required=False, type=str, default=dataset, help="Path to the dataset (e.g. `./<dataset_name>`). Alternatively, if the dataset is located in the current working directory, then the folder name alone is also acceptable (e.g. `<dataset_name>`). IMPORTANT: This will overwrite the config.analysis.dataset attribute of the config file!")
|
|
36
34
|
parser.add_argument("--folder_output", required=False, type=str, default=folder_output, help="Path to the folder where results of the run are stored. IMPORTANT: This will overwrite the "
|
|
37
35
|
"config.analysis.folder_output attribute of the config file!")
|
|
38
36
|
parser.add_argument("--job_index", required=False, type=str, default=job_index, help="A comma separated list (no spaces) of indices of the scenarios to run, if None, all scenarios are run in sequence")
|
|
@@ -51,7 +49,8 @@ def run_module(args=None, config = "./config.py", dataset = None,
|
|
|
51
49
|
args.config = args.config.replace(".py", ".json")
|
|
52
50
|
|
|
53
51
|
# change working directory to the directory of the config file
|
|
54
|
-
|
|
52
|
+
|
|
53
|
+
config_path, config_file = os.path.split(os.path.abspath(args.config))
|
|
55
54
|
os.chdir(config_path)
|
|
56
55
|
### import the config
|
|
57
56
|
if config_file.endswith(".py"):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: zen_garden
|
|
3
|
-
Version: 2.7.
|
|
3
|
+
Version: 2.7.8
|
|
4
4
|
Summary: ZEN-garden is an optimization model of energy systems and value chains.
|
|
5
5
|
Author: Alissa Ganter, Johannes Burger, Francesco De Marco, Lukas Kunz, Lukas Schmidt-Engelbertz, Paolo Gabrielli, Giovanni Sansavini
|
|
6
6
|
Author-email: Jacob Mannhardt <zen-garden@ethz.ch>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
zen_garden/__init__.py,sha256=Jc8WQzHjL74sk4xOnbv1i68Bt6RuzXPkh9WYn3Jl_LE,376
|
|
2
|
-
zen_garden/__main__.py,sha256=
|
|
2
|
+
zen_garden/__main__.py,sha256=OQJDzJThfQ2MtU3l1WYVDMNAymy6x6bq1_mxWeu8NCA,4610
|
|
3
3
|
zen_garden/_internal.py,sha256=kn-Vs_rbdNMV9uA5dH-wWPbdbWGA6rolbIiEMAJb_IU,5180
|
|
4
4
|
zen_garden/default_config.py,sha256=ozz2LBSGSaMH8alEAzh-6ziM9IE9zXM9PfRD3nulAIs,8663
|
|
5
5
|
zen_garden/optimization_setup.py,sha256=Rv_IciR_Y9GF-OaPDDAvTQ2huTuAt94jrWpcDJCQgWQ,42176
|
|
@@ -30,7 +30,7 @@ zen_garden/preprocess/extract_input_data.py,sha256=PWKdel7s488SELseyAaoFkwXpzJU4
|
|
|
30
30
|
zen_garden/preprocess/parameter_change_log.py,sha256=WNhLYTyuaFkUl_e4QH36W1chpqg00m7zg__PawPogAY,387
|
|
31
31
|
zen_garden/preprocess/time_series_aggregation.py,sha256=BFdIHQ80Xbk-MgZENhA55fTUjvQA2WhcUlTfw6BY7BQ,32107
|
|
32
32
|
zen_garden/preprocess/unit_handling.py,sha256=OGIHFyDdUmGU-GEGHkJGJ9RmKfDBy5-HmuBQmtYAK5Q,63043
|
|
33
|
-
zen_garden-2.7.
|
|
34
|
-
zen_garden-2.7.
|
|
35
|
-
zen_garden-2.7.
|
|
36
|
-
zen_garden-2.7.
|
|
33
|
+
zen_garden-2.7.8.dist-info/licenses/LICENSE.txt,sha256=_kEtxPe9gWOwMzdiy8nLzgABiPdMvUS0kaSCOIrEA_E,1101
|
|
34
|
+
zen_garden-2.7.8.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
35
|
+
zen_garden-2.7.8.dist-info/METADATA,sha256=jASSyOt2NI84H4zPn77sBndBKKjK5jylDwMzibhLaeM,5840
|
|
36
|
+
zen_garden-2.7.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|