ChaProEV 1.3.0__tar.gz → 1.3.2__tar.gz

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 (149) hide show
  1. {chaproev-1.3.0 → chaproev-1.3.2}/ChaProEV.pptx +0 -0
  2. {chaproev-1.3.0/src/ChaProEV.egg-info → chaproev-1.3.2}/PKG-INFO +1 -1
  3. chaproev-1.3.2/chaproev-1.3.0/.flake8 +2 -0
  4. chaproev-1.3.2/chaproev-1.3.0/.gitignore +15 -0
  5. chaproev-1.3.2/docs/non_road.md +213 -0
  6. chaproev-1.3.2/docs/parallel_processing.md +35 -0
  7. {chaproev-1.3.0 → chaproev-1.3.2}/mkdocs.yml +9 -0
  8. {chaproev-1.3.0 → chaproev-1.3.2}/non-road/Mopo/NL_domestic-aviation_2040_Aviation gasoline.toml +1 -12
  9. {chaproev-1.3.0 → chaproev-1.3.2}/non-road/Mopo/NL_domestic-aviation_2050_Aviation gasoline.toml +0 -12
  10. chaproev-1.3.2/non-road/Mopo/growth_factors.csv +1392 -0
  11. chaproev-1.3.2/non-road/Mopo/scenarios.toml +9 -0
  12. {chaproev-1.3.0 → chaproev-1.3.2}/non-road.toml +59 -17
  13. {chaproev-1.3.0 → chaproev-1.3.2}/pyproject.toml +1 -1
  14. chaproev-1.3.2/ref_val.csv +1392 -0
  15. chaproev-1.3.2/scenarios/cumulative_test/Spain_bus_2050.toml +774 -0
  16. chaproev-1.3.2/scenarios/cumulative_test/Spain_van_2050.toml +581 -0
  17. chaproev-1.3.2/scenarios/cumulative_test/XX_car.toml +756 -0
  18. chaproev-1.3.2/scenarios/cumulative_test/XX_truck.toml +437 -0
  19. chaproev-1.3.2/scenarios/cumulative_test/XX_van.toml +452 -0
  20. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/ChaProEV.py +5 -5
  21. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/charging.py +22 -19
  22. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/define.py +68 -116
  23. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/make_variants.py +3 -3
  24. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/mobility.py +117 -76
  25. chaproev-1.3.2/src/ChaProEV/non_road.py +617 -0
  26. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/profiles.py +9 -5
  27. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/scenarios_module.py +7 -7
  28. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/writing.py +7 -5
  29. {chaproev-1.3.0 → chaproev-1.3.2/src/ChaProEV.egg-info}/PKG-INFO +1 -1
  30. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/SOURCES.txt +12 -0
  31. chaproev-1.3.0/src/ChaProEV/non_road.py +0 -432
  32. {chaproev-1.3.0 → chaproev-1.3.2}/.flake8 +0 -0
  33. {chaproev-1.3.0 → chaproev-1.3.2}/.gitignore +0 -0
  34. {chaproev-1.3.0 → chaproev-1.3.2}/.vscode/ltex.dictionary.en-US.txt +0 -0
  35. {chaproev-1.3.0 → chaproev-1.3.2}/.vscode/settings.json +0 -0
  36. {chaproev-1.3.0 → chaproev-1.3.2}/ChaProEV.toml +0 -0
  37. {chaproev-1.3.0 → chaproev-1.3.2}/ChaProEV_test_case_configuration_files.zip +0 -0
  38. {chaproev-1.3.0 → chaproev-1.3.2}/Gemfile +0 -0
  39. {chaproev-1.3.0 → chaproev-1.3.2}/LICENCE +0 -0
  40. {chaproev-1.3.0 → chaproev-1.3.2}/MOPO_logo_chaproev on wht.svg +0 -0
  41. {chaproev-1.3.0 → chaproev-1.3.2}/MOPO_logo_chaproev.png +0 -0
  42. {chaproev-1.3.0 → chaproev-1.3.2}/MOPO_logo_chaproev.svg +0 -0
  43. {chaproev-1.3.0 → chaproev-1.3.2}/MOPO_logo_main.svg +0 -0
  44. {chaproev-1.3.0 → chaproev-1.3.2}/MOPO_logo_main_onwhite.svg +0 -0
  45. {chaproev-1.3.0 → chaproev-1.3.2}/README-PC-28624.md +0 -0
  46. {chaproev-1.3.0 → chaproev-1.3.2}/README.md +0 -0
  47. {chaproev-1.3.0 → chaproev-1.3.2}/comparisons/comparison_template.toml +0 -0
  48. {chaproev-1.3.0 → chaproev-1.3.2}/docs/ChaProEV_workflow.png +0 -0
  49. {chaproev-1.3.0 → chaproev-1.3.2}/docs/Legs.png +0 -0
  50. {chaproev-1.3.0 → chaproev-1.3.2}/docs/Locations.png +0 -0
  51. {chaproev-1.3.0 → chaproev-1.3.2}/docs/Makefile +0 -0
  52. {chaproev-1.3.0 → chaproev-1.3.2}/docs/Trips.png +0 -0
  53. {chaproev-1.3.0 → chaproev-1.3.2}/docs/Vehicle_Temperature_correction_factor.svg +0 -0
  54. {chaproev-1.3.0 → chaproev-1.3.2}/docs/_config.yml +0 -0
  55. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/doctrees/environment.pickle +0 -0
  56. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/doctrees/index.doctree +0 -0
  57. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/.buildinfo +0 -0
  58. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_sources/index.rst.txt +0 -0
  59. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/alabaster.css +0 -0
  60. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/basic.css +0 -0
  61. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/custom.css +0 -0
  62. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/doctools.js +0 -0
  63. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/documentation_options.js +0 -0
  64. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/file.png +0 -0
  65. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/language_data.js +0 -0
  66. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/minus.png +0 -0
  67. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/plus.png +0 -0
  68. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/pygments.css +0 -0
  69. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/searchtools.js +0 -0
  70. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/sphinx_highlight.js +0 -0
  71. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/genindex.html +0 -0
  72. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/index.html +0 -0
  73. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/objects.inv +0 -0
  74. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/search.html +0 -0
  75. {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/searchindex.js +0 -0
  76. {chaproev-1.3.0 → chaproev-1.3.2}/docs/charging.md +0 -0
  77. {chaproev-1.3.0 → chaproev-1.3.2}/docs/consumption-PC-28624.md +0 -0
  78. {chaproev-1.3.0 → chaproev-1.3.2}/docs/consumption.md +0 -0
  79. {chaproev-1.3.0 → chaproev-1.3.2}/docs/define-PC-28624.md +0 -0
  80. {chaproev-1.3.0 → chaproev-1.3.2}/docs/define.md +0 -0
  81. {chaproev-1.3.0 → chaproev-1.3.2}/docs/general_parameters-PC-28624.md +0 -0
  82. {chaproev-1.3.0 → chaproev-1.3.2}/docs/general_parameters.md +0 -0
  83. {chaproev-1.3.0 → chaproev-1.3.2}/docs/index-PC-28624.md +0 -0
  84. {chaproev-1.3.0 → chaproev-1.3.2}/docs/index.md +0 -0
  85. {chaproev-1.3.0 → chaproev-1.3.2}/docs/input.md +0 -0
  86. {chaproev-1.3.0 → chaproev-1.3.2}/docs/make.bat +0 -0
  87. {chaproev-1.3.0 → chaproev-1.3.2}/docs/make_variants.md +0 -0
  88. {chaproev-1.3.0 → chaproev-1.3.2}/docs/mobility-PC-28624.md +0 -0
  89. {chaproev-1.3.0 → chaproev-1.3.2}/docs/mobility.md +0 -0
  90. {chaproev-1.3.0 → chaproev-1.3.2}/docs/multiprocessing.md +0 -0
  91. {chaproev-1.3.0 → chaproev-1.3.2}/docs/outputs.md +0 -0
  92. {chaproev-1.3.0 → chaproev-1.3.2}/docs/profiles.md +0 -0
  93. {chaproev-1.3.0 → chaproev-1.3.2}/docs/run_time.md +0 -0
  94. {chaproev-1.3.0 → chaproev-1.3.2}/docs/running_model.md +0 -0
  95. {chaproev-1.3.0 → chaproev-1.3.2}/docs/scenario-PC-28624.md +0 -0
  96. {chaproev-1.3.0 → chaproev-1.3.2}/docs/scenario.md +0 -0
  97. {chaproev-1.3.0 → chaproev-1.3.2}/docs/scenarios_module.md +0 -0
  98. {chaproev-1.3.0 → chaproev-1.3.2}/docs/source/index.rst +0 -0
  99. {chaproev-1.3.0 → chaproev-1.3.2}/docs/using-PC-28624.md +0 -0
  100. {chaproev-1.3.0 → chaproev-1.3.2}/docs/using.md +0 -0
  101. {chaproev-1.3.0 → chaproev-1.3.2}/docs/variants-PC-28624.md +0 -0
  102. {chaproev-1.3.0 → chaproev-1.3.2}/docs/variants.md +0 -0
  103. {chaproev-1.3.0 → chaproev-1.3.2}/docs/weather-PC-28624.md +0 -0
  104. {chaproev-1.3.0 → chaproev-1.3.2}/docs/weather.md +0 -0
  105. {chaproev-1.3.0 → chaproev-1.3.2}/docs/writing.md +0 -0
  106. {chaproev-1.3.0 → chaproev-1.3.2}/eu-emblem-low-res.jpg +0 -0
  107. {chaproev-1.3.0 → chaproev-1.3.2}/input/Mopo/car_own_driveway_percentage.csv +0 -0
  108. {chaproev-1.3.0 → chaproev-1.3.2}/input/Mopo/fleets.csv +0 -0
  109. {chaproev-1.3.0 → chaproev-1.3.2}/mkdocs-PC-28624.yml +0 -0
  110. {chaproev-1.3.0 → chaproev-1.3.2}/non-road/Mopo/scenario_demands.csv +0 -0
  111. {chaproev-1.3.0 → chaproev-1.3.2}/requirements.txt +0 -0
  112. {chaproev-1.3.0 → chaproev-1.3.2}/requirements_obsolete.txt +0 -0
  113. {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/Mopo/Latvia_car_own_driveway_2050.toml +0 -0
  114. {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/Mopo/Netherlands_urban_car.toml +0 -0
  115. {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/Mopo/Switzerland_car_own_driveway_2050.toml +0 -0
  116. {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/Mopo/XX_bus.toml +0 -0
  117. {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/Mopo/XX_car.toml +0 -0
  118. {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/Mopo/XX_car_test.toml +0 -0
  119. {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/Mopo/XX_truck.toml +0 -0
  120. {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/Mopo/XX_van.toml +0 -0
  121. {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/bus_test/XX_bus.toml +0 -0
  122. {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/local_impact_BEVs/baseline.toml +0 -0
  123. {chaproev-1.3.0 → chaproev-1.3.2}/setup.cfg +0 -0
  124. {chaproev-1.3.0 → chaproev-1.3.2}/siec.csv +0 -0
  125. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/__init__.py +0 -0
  126. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/consumption.py +0 -0
  127. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/py.typed +0 -0
  128. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/run_time.py +0 -0
  129. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/weather.py +0 -0
  130. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/PKG-INFO-PC-28624 +0 -0
  131. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/PKG-INFO-PC-28624-2 +0 -0
  132. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/SOURCES-PC-28624-2.txt +0 -0
  133. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/SOURCES-PC-28624.txt +0 -0
  134. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/dependency_links.txt +0 -0
  135. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/requires-PC-28624-2.txt +0 -0
  136. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/requires-PC-28624.txt +0 -0
  137. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/requires.txt +0 -0
  138. {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/top_level.txt +0 -0
  139. {chaproev-1.3.0 → chaproev-1.3.2}/test_bus_moility_matrices/bus_weekday_in_holiday_week.csv +0 -0
  140. {chaproev-1.3.0 → chaproev-1.3.2}/test_bus_moility_matrices/bus_weekday_in_workweek.csv +0 -0
  141. {chaproev-1.3.0 → chaproev-1.3.2}/test_bus_moility_matrices/bus_weekend_in_holiday_week.csv +0 -0
  142. {chaproev-1.3.0 → chaproev-1.3.2}/test_bus_moility_matrices/bus_weekend_in_workweek.csv +0 -0
  143. {chaproev-1.3.0 → chaproev-1.3.2}/tests/test_battery_space.py +0 -0
  144. {chaproev-1.3.0 → chaproev-1.3.2}/tests/test_charge_and_consumption.py +0 -0
  145. {chaproev-1.3.0 → chaproev-1.3.2}/tests/test_empty_values.py +0 -0
  146. {chaproev-1.3.0 → chaproev-1.3.2}/tests/test_same_output.py +0 -0
  147. {chaproev-1.3.0 → chaproev-1.3.2}/todo.txt +0 -0
  148. {chaproev-1.3.0 → chaproev-1.3.2}/variants/Mopo/XX_car.csv +0 -0
  149. {chaproev-1.3.0 → chaproev-1.3.2}/variants/Mopo.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ChaProEV
3
- Version: 1.3.0
3
+ Version: 1.3.2
4
4
  Summary: ChaProEV: Charging Profiles of Electric Vehicles
5
5
  Author-email: Omar Usmani <Omar.Usmani@TNO.nl>
6
6
  Project-URL: Homepage, https://github.com/TNO/ChaProEV
@@ -0,0 +1,2 @@
1
+ [flake8]
2
+ exclude = "devel"
@@ -0,0 +1,15 @@
1
+ input/*
2
+ !input/Mopo/
3
+ output/
4
+ devel/
5
+ ChaProEV_env/
6
+ __pycache__/
7
+ documentation/
8
+ site/
9
+ .venv/
10
+ reference_run/
11
+ reference_run_prev/
12
+ reference_run_previous/
13
+ non-road-output/
14
+ test_outputs/
15
+
@@ -0,0 +1,213 @@
1
+ # Non-road Profiles
2
+
3
+ This module computes demand profiles for non-road modes of transport.
4
+
5
+
6
+
7
+
8
+ ## Module
9
+
10
+ ### get_non_road_data
11
+ This is the main function of this module. It runs all the functions of this module.
12
+
13
+
14
+ ### get_Eurostat_balances
15
+ This function gets the energy balances from Eurostat via
16
+ the [Eurostat Python Package](https://pypi.org/project/eurostat/).
17
+ This function runs a function from the Eurostat package to
18
+ get a table, by using the right table code and saving the
19
+ obatined dataframe. This only runs if the user decides to fetch
20
+ the database from Eurostat. See [the documentation about parameters for more details](#eurostat).
21
+
22
+
23
+ ### get_reference_year_data
24
+ Processes the DataFrame fetched from Eurostat into a DataFrame for the reference year
25
+ modes, energy carriers we want.
26
+
27
+ The function runs through each mode (defined [here](#modes)) and gets its
28
+ values from the Eurostat table obatined [here](#get_Eurostat_balances) through
29
+ the [get_mode_reference_values function](#get_mode_reference_values).
30
+ The function also sets [the index](#demand_index) and sorts it.
31
+
32
+ The function also saves the resulting reference historical data.
33
+
34
+
35
+
36
+ ### get_mode_reference_values
37
+ This function get historical data from the Eurostat DataFrame for a
38
+ given mode.
39
+ We need to translate the energy carrier into [SIEC codes](#get_siec_code)
40
+ and back into [carrier names](#get_name_from_siec_code).
41
+ In between these translations, we slice the source
42
+ Eurostat year according to the [chosen mode and its carriers](#modes),
43
+ the [unit we want to use](#unit_to_use) (actually, we slice
44
+ with TJs, which we convert to PJs), and [reference historical year](#reference_historical_year).
45
+
46
+
47
+ ### get_siec_code
48
+ Gets the
49
+ [SIEC (Standard international energy product classification code)](https://dd.eionet.europa.eu/vocabulary/eurostat/siec/view), for an energy carrier using a [translation_file](#code_file).
50
+
51
+ ### get_name_from_siec_code
52
+ Gets the name of an energy carrier from its
53
+ [SIEC (Standard international energy product classification code)](https://dd.eionet.europa.eu/vocabulary/eurostat/siec/view), using a [translation_file](#code_file).
54
+
55
+ ### get_future_demand_values
56
+ Gets the demand for future years.
57
+ This function takes the reference values from [get_mode_reference_values](#get_mode_reference_values)
58
+ and multiplies them by a [growth table][#growth_factors_file].
59
+
60
+ ### get_non_road_profiles
61
+ This function creates the profiles we need.
62
+ It first [loads the scenarios][#load_scenarios] and then runs
63
+ the [profile getting](#get_profile) function for each scenario
64
+ (see the [general explanation about this](parallel_processing.md) )
65
+
66
+
67
+ ### get_profile
68
+
69
+
70
+ ## Configuration (non-road.toml)
71
+
72
+ #### historical_dataframe_name
73
+ The name of the historical data DataFrame.
74
+
75
+ #### demand_dataframe_name
76
+ The name of the DataFrame that conatins all th edemand data (historical
77
+ and projected)
78
+
79
+ #### source_folder
80
+ The folder that contains source/input data for a given
81
+ case (so it is under that case name's subfolder).
82
+
83
+
84
+ #### output_folder
85
+ The folder where the output files go (in a case name subfolder).
86
+
87
+ #### demand_index
88
+ Those are the columns we use for the index of the historical demand
89
+ DataFrame.
90
+
91
+ #### demand_header
92
+ This is the name of the header/column of the historical demand DataFrame
93
+
94
+ #### reference_historical_year
95
+ The year for which we extract the Eurostat data.
96
+
97
+ #### growth_factors_file
98
+ The name of the file (in source_folder/case_name) containing
99
+ the growth factors (relative to the [reference historical year](#reference_historical_year))
100
+ for all country/mode/energy carrier combinations in the historical data.
101
+
102
+ #### growth_factors_index
103
+ The index columns for the growth factor file.
104
+
105
+ ### modes
106
+ For each mode, you need to provide its code and the
107
+ energy carriers it uses.
108
+ Follow the structure of existing elements (see example below), by copying it
109
+ and replacing the name (in this case international-maritime-bunkers)
110
+ by the name of your mode and by using the right code and energy carriers.
111
+
112
+ ```toml
113
+ [modes.international-maritime-bunkers]
114
+ code = 'INTMARB'
115
+ energy_carriers = [
116
+ 'Natural gas',
117
+ 'Motor gasoline (excluding biofuel portion)',
118
+ 'Kerosene-type jet fuel (excluding biofuel portion)',
119
+ 'Gas oil and diesel oil (excluding biofuel portion)',
120
+ 'Fuel oil',
121
+ 'Lubricants',
122
+ 'Other oil products n.e.c.',
123
+ 'Blended biodiesels',
124
+ 'Pure biodiesels',
125
+ 'Other liquid biofuels'
126
+
127
+ ]
128
+ modified_instances = [2, 4, 12, 26, 47, 48, 49, 50]
129
+ modification_factors = [0.89, 0.89, 0.26, 0.26, 0.26, 0.42, 0.77, 0.89]
130
+ recurring_modifications_starts = [2]
131
+ recurring_modifications = [0.5]
132
+ recurrences_steps = [2]
133
+ amounts_of_recurrences = [0] # If set to zero, repeats for whole run
134
+ ```
135
+ #### modified_instances
136
+ These are the instances (week numbers) that differ from the average
137
+ (i.e. when the consumption is higher or lower).
138
+
139
+ #### modification_factors
140
+ The correction factor for the modified instances
141
+
142
+ #### recurring_modifications
143
+ This is used if you want to have modifications recur/repeat.
144
+ You need to tell when these modifications start (in a list of starts),
145
+ what the modification factors are, what the steps (interval between modifications),
146
+ and how many of these are (if you put 0, then it goes for the whole run).
147
+ The latter three are lists of the same length as the modification starts.
148
+
149
+ ### progress_bars
150
+ Parameters related to displaying progress bars using [tqdm](https://github.com/tqdm/tqdm).
151
+ #### display_scenario_run
152
+ Set to true if you want to show progress bars
153
+ #### scenario_run_description
154
+ The text to display together with the progress bars
155
+
156
+
157
+ ### parallel_processing
158
+ Parameters related to [parallel processing](parallel_processing.md).
159
+ #### set_amount_of_processes
160
+ Set to true if you want to adjust the amount pof processes by hand.
161
+ #### amount_of_processes
162
+ The amount of processes if set by hand.
163
+
164
+
165
+ ### files
166
+ #### files.dataframe_outputs
167
+ Indicate below if you want to save your Pandas DataFrames in the
168
+ listed formats (put a true if you want to do so, false if you don't).
169
+ This uses the [Save DataFrame](https://tno.github.io/ETS_CookBook/save_dataframe/)
170
+ from the [ETS CookBook](https://github.com/TNO/ETS_CookBook).
171
+
172
+
173
+ ### Eurostat
174
+ These are parameters for getting data from the Eurostat API,
175
+ using the [Eurostat Python Package](https://pypi.org/project/eurostat/)
176
+ #### fetch
177
+ A boolean to tell the model if it needs to fetch the data from Eurostat.
178
+ Set it to true if you don't have the data yet or if you want to refresh it.
179
+ Set it to false if you want to run with already fetch data (for exmaple if
180
+ you ant to run offline, or if you just got the data).
181
+ #### table_code
182
+ The table code for complete energy balances is 'nrg_bal_c'.
183
+ Other codes can be obtained with eurostat.get_toc_df().
184
+ See [Eurostat Python Package](https://pypi.org/project/eurostat/)
185
+ for details.
186
+
187
+ #### table_name
188
+ The name you want to use to save your DataFrame and that you will be using for
189
+ retrieving the Eurostat data.
190
+
191
+ #### index_headers
192
+ The headers/columns to use as an index (used in the
193
+ [function getting values per mode][#get_mode_reference_values]).
194
+ #### unit_to_use
195
+ The unit to use for the Eurostat data
196
+
197
+ ### Energy_carriers
198
+ #### code_file
199
+ The location of the file used to translate
200
+ [SIEC (Standard international energy product classification codes)](https://dd.eionet.europa.eu/vocabulary/eurostat/siec/view).
201
+ #### code_column
202
+ The name of the column conmtaining the SIEC codes
203
+ #### name_column
204
+ The name of the column conatining energy carriers/products names.
205
+ #### status_column
206
+ The column containing the status of that code (if it is still in use , 'it is 'valid').
207
+
208
+ ### run_range
209
+ The year, month, day, hour of the run start and end
210
+ (end should be the first time step that is not included).
211
+ The ferquency string tells us the frequency of the range (and where
212
+ it starts, such as 'W-MON'),
213
+
@@ -0,0 +1,35 @@
1
+
2
+
3
+ ```python
4
+ scenarios: list[Box] = scenarios_module.load_scenarios(case_name)
5
+
6
+ set_amount_of_processes: bool = (
7
+ general_parameters.parallel_processing.set_amount_of_processes
8
+ )
9
+ if set_amount_of_processes:
10
+ amount_of_parallel_processes: int | None = None
11
+ else:
12
+ amount_of_parallel_processes = (
13
+ general_parameters.parallel_processing.amount_for_scenarios
14
+ )
15
+
16
+ pool_inputs: ty.Iterator[tuple[Box, str, Box]] | ty.Any = zip(
17
+ scenarios, repeat(case_name), repeat(general_parameters)
18
+ )
19
+ # the ty.Any alternative is there because transforming it with the
20
+ # progress bar makes mypy think it change is type
21
+ progress_bars_parameters: Box = general_parameters.progress_bars
22
+ display_scenario_run: bool = progress_bars_parameters.display_scenario_run
23
+ scenario_run_description: str = (
24
+ progress_bars_parameters.scenario_run_description
25
+ )
26
+ if display_scenario_run:
27
+ pool_inputs = tqdm.tqdm(
28
+ pool_inputs,
29
+ desc=scenario_run_description,
30
+ total=len(scenarios),
31
+ )
32
+
33
+ with Pool(amount_of_parallel_processes) as scenarios_pool:
34
+ scenarios_pool.starmap(scenarios_module.run_scenario, pool_inputs)
35
+ ```
@@ -14,14 +14,23 @@ nav:
14
14
  - Weather: weather.md
15
15
  - Run time: run_time.md
16
16
  - Define: define.md
17
+ - Mobility: mobility.md
18
+ - Non-road: non_road.md
17
19
  - Charging: charging.md
18
20
  - Consumption: consumption.md
19
21
  - Variants: make_variants.md
20
22
  - Running model: running_model.md
21
23
  - Multiprocessing: multiprocessing.md
22
24
  - Writing: writing.md
25
+ - Scenarios: scenarios_module.md
26
+ - Profiles: profiles.md
27
+ - Programming matters:
28
+ - Parallel processing: parallel_processing.md
23
29
 
24
30
  theme:
25
31
  name: readthedocs
26
32
  sticky_navigation: False
27
33
 
34
+
35
+
36
+
@@ -1,20 +1,9 @@
1
1
 
2
2
  name = 'NL_dometsic-aviation_2040_Aviation gasoline'
3
- growth = 1.1
4
- frequency = 'W-MON'
5
3
  modified_instances = [2, 4, 12, 26, 47, 48, 49, 50]
6
4
  modification_factors = [0.89, 0.89, 0.26, 0.26, 0.26, 0.42, 0.77, 0.89]
7
5
  recurring_modifications_starts = []
8
6
  recurring_modifications = []
9
7
  recurrences_steps = []
10
8
  amounts_of_recurrences = [] # If set to zero, repeats for whole run
11
- [run_start]
12
- year = 2018
13
- month = 1
14
- day = 1
15
- hour = 0
16
- [run_end]
17
- year = 2019
18
- month = 1
19
- day = 1
20
- hour = 0
9
+
@@ -1,20 +1,8 @@
1
1
 
2
2
  name = 'NL_dometsic-aviation_2040_Aviation gasoline'
3
- growth = 1.25
4
- frequency = 'W-MON'
5
3
  modified_instances = [2, 4, 12, 26, 47, 48, 49, 50]
6
4
  modification_factors = [0.89, 0.89, 0.26, 0.26, 0.26, 0.42, 0.77, 0.89]
7
5
  recurring_modifications_starts = [2]
8
6
  recurring_modifications = [0.5]
9
7
  recurrences_steps = [2]
10
8
  amounts_of_recurrences = [0] # If set to zero, repeats for whole run
11
- [run_start]
12
- year = 2018
13
- month = 1
14
- day = 1
15
- hour = 0
16
- [run_end]
17
- year = 2019
18
- month = 1
19
- day = 1
20
- hour = 0