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.
Files changed (75) hide show
  1. ispypsa/__init__.py +7 -0
  2. ispypsa/cli/__init__.py +0 -0
  3. ispypsa/cli/cli.py +33 -0
  4. ispypsa/cli/dodo.py +887 -0
  5. ispypsa/config/__init__.py +17 -0
  6. ispypsa/config/loader.py +40 -0
  7. ispypsa/config/validators.py +185 -0
  8. ispypsa/data_fetch/__init__.py +8 -0
  9. ispypsa/data_fetch/csv_read_write.py +64 -0
  10. ispypsa/data_fetch/download.py +75 -0
  11. ispypsa/data_fetch/manifests/workbooks/6.0.txt +1 -0
  12. ispypsa/helpers.py +16 -0
  13. ispypsa/iasr_table_caching/__init__.py +3 -0
  14. ispypsa/iasr_table_caching/local_cache.py +148 -0
  15. ispypsa/logging.py +73 -0
  16. ispypsa/plotting/__init__.py +17 -0
  17. ispypsa/plotting/generation.py +578 -0
  18. ispypsa/plotting/helpers.py +15 -0
  19. ispypsa/plotting/plot.py +189 -0
  20. ispypsa/plotting/style.py +134 -0
  21. ispypsa/plotting/transmission.py +473 -0
  22. ispypsa/plotting/website.py +540 -0
  23. ispypsa/pypsa_build/__init__.py +5 -0
  24. ispypsa/pypsa_build/build.py +101 -0
  25. ispypsa/pypsa_build/buses.py +109 -0
  26. ispypsa/pypsa_build/carriers.py +32 -0
  27. ispypsa/pypsa_build/custom_constraints.py +117 -0
  28. ispypsa/pypsa_build/generators.py +211 -0
  29. ispypsa/pypsa_build/initialise.py +31 -0
  30. ispypsa/pypsa_build/investment_period_weights.py +21 -0
  31. ispypsa/pypsa_build/links.py +16 -0
  32. ispypsa/pypsa_build/save.py +41 -0
  33. ispypsa/pypsa_build/storage.py +46 -0
  34. ispypsa/pypsa_build/update.py +95 -0
  35. ispypsa/results/__init__.py +22 -0
  36. ispypsa/results/extract.py +157 -0
  37. ispypsa/results/generation.py +293 -0
  38. ispypsa/results/helpers.py +74 -0
  39. ispypsa/results/transmission.py +278 -0
  40. ispypsa/templater/__init__.py +13 -0
  41. ispypsa/templater/create_template.py +221 -0
  42. ispypsa/templater/dynamic_generator_properties.py +561 -0
  43. ispypsa/templater/energy_policy_targets.py +241 -0
  44. ispypsa/templater/filter_template.py +494 -0
  45. ispypsa/templater/flow_paths.py +869 -0
  46. ispypsa/templater/helpers.py +377 -0
  47. ispypsa/templater/lists.py +93 -0
  48. ispypsa/templater/manual_tables.py +40 -0
  49. ispypsa/templater/manually_extracted_template_tables/6.0/custom_constraints_lhs.csv +57 -0
  50. ispypsa/templater/manually_extracted_template_tables/6.0/custom_constraints_rhs.csv +12 -0
  51. ispypsa/templater/manually_extracted_template_tables/6.0/policy_generator_types.csv +55 -0
  52. ispypsa/templater/mappings.py +639 -0
  53. ispypsa/templater/nodes.py +251 -0
  54. ispypsa/templater/renewable_energy_zones.py +145 -0
  55. ispypsa/templater/static_ecaa_generator_properties.py +443 -0
  56. ispypsa/templater/static_new_generator_properties.py +556 -0
  57. ispypsa/templater/storage.py +694 -0
  58. ispypsa/translator/__init__.py +25 -0
  59. ispypsa/translator/buses.py +132 -0
  60. ispypsa/translator/create_pypsa_friendly.py +522 -0
  61. ispypsa/translator/custom_constraints.py +1194 -0
  62. ispypsa/translator/generators.py +1115 -0
  63. ispypsa/translator/helpers.py +156 -0
  64. ispypsa/translator/links.py +252 -0
  65. ispypsa/translator/mappings.py +264 -0
  66. ispypsa/translator/renewable_energy_zones.py +99 -0
  67. ispypsa/translator/snapshots.py +282 -0
  68. ispypsa/translator/storage.py +317 -0
  69. ispypsa/translator/temporal_filters.py +670 -0
  70. ispypsa/translator/time_series_checker.py +52 -0
  71. ispypsa-0.1.0b1.dist-info/METADATA +150 -0
  72. ispypsa-0.1.0b1.dist-info/RECORD +75 -0
  73. ispypsa-0.1.0b1.dist-info/WHEEL +4 -0
  74. ispypsa-0.1.0b1.dist-info/entry_points.txt +2 -0
  75. ispypsa-0.1.0b1.dist-info/licenses/LICENSE +675 -0
ispypsa/__init__.py ADDED
@@ -0,0 +1,7 @@
1
+ import pandas as pd
2
+
3
+ # pandas options
4
+ pd.set_option("future.no_silent_downcasting", True)
5
+
6
+
7
+ __all__ = []
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()