ISPyPSA 0.1.0b1__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.
- ispypsa/__init__.py +7 -0
- ispypsa/cli/__init__.py +0 -0
- ispypsa/cli/cli.py +33 -0
- ispypsa/cli/dodo.py +887 -0
- ispypsa/config/__init__.py +17 -0
- ispypsa/config/loader.py +40 -0
- ispypsa/config/validators.py +185 -0
- ispypsa/data_fetch/__init__.py +8 -0
- ispypsa/data_fetch/csv_read_write.py +64 -0
- ispypsa/data_fetch/download.py +75 -0
- ispypsa/data_fetch/manifests/workbooks/6.0.txt +1 -0
- ispypsa/helpers.py +16 -0
- ispypsa/iasr_table_caching/__init__.py +3 -0
- ispypsa/iasr_table_caching/local_cache.py +148 -0
- ispypsa/logging.py +73 -0
- ispypsa/plotting/__init__.py +17 -0
- ispypsa/plotting/generation.py +578 -0
- ispypsa/plotting/helpers.py +15 -0
- ispypsa/plotting/plot.py +189 -0
- ispypsa/plotting/style.py +134 -0
- ispypsa/plotting/transmission.py +473 -0
- ispypsa/plotting/website.py +540 -0
- ispypsa/pypsa_build/__init__.py +5 -0
- ispypsa/pypsa_build/build.py +101 -0
- ispypsa/pypsa_build/buses.py +109 -0
- ispypsa/pypsa_build/carriers.py +32 -0
- ispypsa/pypsa_build/custom_constraints.py +117 -0
- ispypsa/pypsa_build/generators.py +211 -0
- ispypsa/pypsa_build/initialise.py +31 -0
- ispypsa/pypsa_build/investment_period_weights.py +21 -0
- ispypsa/pypsa_build/links.py +16 -0
- ispypsa/pypsa_build/save.py +41 -0
- ispypsa/pypsa_build/storage.py +46 -0
- ispypsa/pypsa_build/update.py +95 -0
- ispypsa/results/__init__.py +22 -0
- ispypsa/results/extract.py +157 -0
- ispypsa/results/generation.py +293 -0
- ispypsa/results/helpers.py +74 -0
- ispypsa/results/transmission.py +278 -0
- ispypsa/templater/__init__.py +13 -0
- ispypsa/templater/create_template.py +221 -0
- ispypsa/templater/dynamic_generator_properties.py +561 -0
- ispypsa/templater/energy_policy_targets.py +241 -0
- ispypsa/templater/filter_template.py +494 -0
- ispypsa/templater/flow_paths.py +869 -0
- ispypsa/templater/helpers.py +377 -0
- ispypsa/templater/lists.py +93 -0
- ispypsa/templater/manual_tables.py +40 -0
- ispypsa/templater/manually_extracted_template_tables/6.0/custom_constraints_lhs.csv +57 -0
- ispypsa/templater/manually_extracted_template_tables/6.0/custom_constraints_rhs.csv +12 -0
- ispypsa/templater/manually_extracted_template_tables/6.0/policy_generator_types.csv +55 -0
- ispypsa/templater/mappings.py +639 -0
- ispypsa/templater/nodes.py +251 -0
- ispypsa/templater/renewable_energy_zones.py +145 -0
- ispypsa/templater/static_ecaa_generator_properties.py +443 -0
- ispypsa/templater/static_new_generator_properties.py +556 -0
- ispypsa/templater/storage.py +694 -0
- ispypsa/translator/__init__.py +25 -0
- ispypsa/translator/buses.py +132 -0
- ispypsa/translator/create_pypsa_friendly.py +522 -0
- ispypsa/translator/custom_constraints.py +1194 -0
- ispypsa/translator/generators.py +1115 -0
- ispypsa/translator/helpers.py +156 -0
- ispypsa/translator/links.py +252 -0
- ispypsa/translator/mappings.py +264 -0
- ispypsa/translator/renewable_energy_zones.py +99 -0
- ispypsa/translator/snapshots.py +282 -0
- ispypsa/translator/storage.py +317 -0
- ispypsa/translator/temporal_filters.py +670 -0
- ispypsa/translator/time_series_checker.py +52 -0
- ispypsa-0.1.0b1.dist-info/METADATA +150 -0
- ispypsa-0.1.0b1.dist-info/RECORD +75 -0
- ispypsa-0.1.0b1.dist-info/WHEEL +4 -0
- ispypsa-0.1.0b1.dist-info/entry_points.txt +2 -0
- ispypsa-0.1.0b1.dist-info/licenses/LICENSE +675 -0
ispypsa/__init__.py
ADDED
ispypsa/cli/__init__.py
ADDED
|
File without changes
|
ispypsa/cli/cli.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
ISPyPSA Command Line Interface
|
|
4
|
+
|
|
5
|
+
This module provides a command-line interface that runs ISPyPSA workflows
|
|
6
|
+
with config=value parameter support.
|
|
7
|
+
|
|
8
|
+
Usage:
|
|
9
|
+
ispypsa config=path/to/config.yaml TASK [OPTIONS]
|
|
10
|
+
ispypsa list
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import sys
|
|
14
|
+
from pathlib import Path
|
|
15
|
+
|
|
16
|
+
from doit.doit_cmd import DoitMain
|
|
17
|
+
|
|
18
|
+
# Get the path to the dodo.py file in the ISPyPSA package
|
|
19
|
+
DODO_FILE = Path(__file__).parent / "dodo.py"
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def main():
|
|
23
|
+
"""Main entry point for the ispypsa CLI."""
|
|
24
|
+
# Insert the -f flag to specify the dodo.py location
|
|
25
|
+
# and -d flag to stay in current directory
|
|
26
|
+
args = ["-f", str(DODO_FILE), "-d", "."] + sys.argv[1:]
|
|
27
|
+
|
|
28
|
+
# Use doit directly - it natively supports config=value syntax
|
|
29
|
+
sys.exit(DoitMain().run(args))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
if __name__ == "__main__":
|
|
33
|
+
main()
|