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.
- {chaproev-1.3.0 → chaproev-1.3.2}/ChaProEV.pptx +0 -0
- {chaproev-1.3.0/src/ChaProEV.egg-info → chaproev-1.3.2}/PKG-INFO +1 -1
- chaproev-1.3.2/chaproev-1.3.0/.flake8 +2 -0
- chaproev-1.3.2/chaproev-1.3.0/.gitignore +15 -0
- chaproev-1.3.2/docs/non_road.md +213 -0
- chaproev-1.3.2/docs/parallel_processing.md +35 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/mkdocs.yml +9 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/non-road/Mopo/NL_domestic-aviation_2040_Aviation gasoline.toml +1 -12
- {chaproev-1.3.0 → chaproev-1.3.2}/non-road/Mopo/NL_domestic-aviation_2050_Aviation gasoline.toml +0 -12
- chaproev-1.3.2/non-road/Mopo/growth_factors.csv +1392 -0
- chaproev-1.3.2/non-road/Mopo/scenarios.toml +9 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/non-road.toml +59 -17
- {chaproev-1.3.0 → chaproev-1.3.2}/pyproject.toml +1 -1
- chaproev-1.3.2/ref_val.csv +1392 -0
- chaproev-1.3.2/scenarios/cumulative_test/Spain_bus_2050.toml +774 -0
- chaproev-1.3.2/scenarios/cumulative_test/Spain_van_2050.toml +581 -0
- chaproev-1.3.2/scenarios/cumulative_test/XX_car.toml +756 -0
- chaproev-1.3.2/scenarios/cumulative_test/XX_truck.toml +437 -0
- chaproev-1.3.2/scenarios/cumulative_test/XX_van.toml +452 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/ChaProEV.py +5 -5
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/charging.py +22 -19
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/define.py +68 -116
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/make_variants.py +3 -3
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/mobility.py +117 -76
- chaproev-1.3.2/src/ChaProEV/non_road.py +617 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/profiles.py +9 -5
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/scenarios_module.py +7 -7
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/writing.py +7 -5
- {chaproev-1.3.0 → chaproev-1.3.2/src/ChaProEV.egg-info}/PKG-INFO +1 -1
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/SOURCES.txt +12 -0
- chaproev-1.3.0/src/ChaProEV/non_road.py +0 -432
- {chaproev-1.3.0 → chaproev-1.3.2}/.flake8 +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/.gitignore +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/.vscode/ltex.dictionary.en-US.txt +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/.vscode/settings.json +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/ChaProEV.toml +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/ChaProEV_test_case_configuration_files.zip +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/Gemfile +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/LICENCE +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/MOPO_logo_chaproev on wht.svg +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/MOPO_logo_chaproev.png +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/MOPO_logo_chaproev.svg +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/MOPO_logo_main.svg +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/MOPO_logo_main_onwhite.svg +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/README-PC-28624.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/README.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/comparisons/comparison_template.toml +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/ChaProEV_workflow.png +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/Legs.png +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/Locations.png +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/Makefile +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/Trips.png +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/Vehicle_Temperature_correction_factor.svg +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/_config.yml +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/doctrees/environment.pickle +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/doctrees/index.doctree +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/.buildinfo +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_sources/index.rst.txt +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/alabaster.css +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/basic.css +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/custom.css +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/doctools.js +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/documentation_options.js +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/file.png +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/language_data.js +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/minus.png +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/plus.png +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/pygments.css +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/searchtools.js +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/_static/sphinx_highlight.js +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/genindex.html +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/index.html +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/objects.inv +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/search.html +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/build/html/searchindex.js +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/charging.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/consumption-PC-28624.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/consumption.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/define-PC-28624.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/define.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/general_parameters-PC-28624.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/general_parameters.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/index-PC-28624.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/index.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/input.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/make.bat +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/make_variants.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/mobility-PC-28624.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/mobility.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/multiprocessing.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/outputs.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/profiles.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/run_time.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/running_model.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/scenario-PC-28624.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/scenario.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/scenarios_module.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/source/index.rst +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/using-PC-28624.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/using.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/variants-PC-28624.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/variants.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/weather-PC-28624.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/weather.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/docs/writing.md +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/eu-emblem-low-res.jpg +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/input/Mopo/car_own_driveway_percentage.csv +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/input/Mopo/fleets.csv +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/mkdocs-PC-28624.yml +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/non-road/Mopo/scenario_demands.csv +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/requirements.txt +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/requirements_obsolete.txt +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/Mopo/Latvia_car_own_driveway_2050.toml +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/Mopo/Netherlands_urban_car.toml +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/Mopo/Switzerland_car_own_driveway_2050.toml +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/Mopo/XX_bus.toml +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/Mopo/XX_car.toml +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/Mopo/XX_car_test.toml +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/Mopo/XX_truck.toml +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/Mopo/XX_van.toml +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/bus_test/XX_bus.toml +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/scenarios/local_impact_BEVs/baseline.toml +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/setup.cfg +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/siec.csv +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/__init__.py +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/consumption.py +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/py.typed +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/run_time.py +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV/weather.py +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/PKG-INFO-PC-28624 +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/PKG-INFO-PC-28624-2 +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/SOURCES-PC-28624-2.txt +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/SOURCES-PC-28624.txt +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/dependency_links.txt +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/requires-PC-28624-2.txt +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/requires-PC-28624.txt +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/requires.txt +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/src/ChaProEV.egg-info/top_level.txt +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/test_bus_moility_matrices/bus_weekday_in_holiday_week.csv +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/test_bus_moility_matrices/bus_weekday_in_workweek.csv +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/test_bus_moility_matrices/bus_weekend_in_holiday_week.csv +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/test_bus_moility_matrices/bus_weekend_in_workweek.csv +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/tests/test_battery_space.py +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/tests/test_charge_and_consumption.py +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/tests/test_empty_values.py +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/tests/test_same_output.py +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/todo.txt +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/variants/Mopo/XX_car.csv +0 -0
- {chaproev-1.3.0 → chaproev-1.3.2}/variants/Mopo.toml +0 -0
|
Binary file
|
|
@@ -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
|
+
|
{chaproev-1.3.0 → chaproev-1.3.2}/non-road/Mopo/NL_domestic-aviation_2040_Aviation gasoline.toml
RENAMED
|
@@ -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
|
-
|
|
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
|
+
|
{chaproev-1.3.0 → chaproev-1.3.2}/non-road/Mopo/NL_domestic-aviation_2050_Aviation gasoline.toml
RENAMED
|
@@ -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
|