ChaProEV 1.2.6__tar.gz → 1.2.7__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.2.6 → chaproev-1.2.7}/.gitignore +3 -1
- chaproev-1.2.7/ChaProEV_test_case_configuration_files.zip +0 -0
- {chaproev-1.2.6/src/ChaProEV.egg-info → chaproev-1.2.7}/PKG-INFO +15 -3
- {chaproev-1.2.6 → chaproev-1.2.7}/README.md +14 -2
- chaproev-1.2.7/docs/consumption.md +5 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/define.md +11 -3
- chaproev-1.2.7/docs/general_parameters.md +243 -0
- chaproev-1.2.7/docs/index.md +9 -0
- chaproev-1.2.7/docs/input.md +5 -0
- chaproev-1.2.7/docs/mobility.md +19 -0
- chaproev-1.2.7/docs/multiprocessing.md +22 -0
- chaproev-1.2.7/docs/profiles.md +10 -0
- chaproev-1.2.7/docs/scenario.md +529 -0
- chaproev-1.2.7/docs/scenarios_module.md +5 -0
- chaproev-1.2.7/docs/using.md +22 -0
- chaproev-1.2.7/docs/variants.md +20 -0
- chaproev-1.2.7/docs/weather.md +7 -0
- chaproev-1.2.7/input/Mopo/car_own_driveway_percentage.csv +7 -0
- chaproev-1.2.7/input/Mopo/fleets.csv +46 -0
- chaproev-1.2.7/mkdocs.yml +29 -0
- chaproev-1.2.7/non-road/Mopo/NL_domestic-aviation_2040_Aviation gasoline.toml +20 -0
- chaproev-1.2.7/non-road/Mopo/NL_domestic-aviation_2050_Aviation gasoline.toml +20 -0
- chaproev-1.2.7/non-road/Mopo/scenario_demands.csv +7 -0
- chaproev-1.2.7/non-road.toml +128 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/pyproject.toml +1 -1
- {chaproev-1.2.6/scenarios/bus_test → chaproev-1.2.7/scenarios/Mopo}/XX_bus.toml +2 -2
- {chaproev-1.2.6 → chaproev-1.2.7}/scenarios/Mopo/XX_car.toml +3 -3
- {chaproev-1.2.6 → chaproev-1.2.7}/scenarios/Mopo/XX_truck.toml +2 -2
- {chaproev-1.2.6 → chaproev-1.2.7}/scenarios/Mopo/XX_van.toml +2 -2
- chaproev-1.2.7/siec.csv +286 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV/ChaProEV.py +6 -5
- chaproev-1.2.7/src/ChaProEV/__init__.py +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV/charging.py +4 -4
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV/consumption.py +2 -2
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV/define.py +12 -24
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV/make_variants.py +13 -14
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV/mobility.py +2 -2
- chaproev-1.2.7/src/ChaProEV/non_road.py +432 -0
- chaproev-1.2.7/src/ChaProEV/py.typed +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV/run_time.py +2 -2
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV/scenarios_module.py +1 -1
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV/weather.py +157 -155
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV/writing.py +2 -2
- {chaproev-1.2.6 → chaproev-1.2.7/src/ChaProEV.egg-info}/PKG-INFO +15 -3
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV.egg-info/SOURCES.txt +20 -2
- chaproev-1.2.6/docs/README.md +0 -138
- chaproev-1.2.6/docs/index.md +0 -1
- chaproev-1.2.6/docs/mobility.md +0 -4
- chaproev-1.2.6/docs/scenario.md +0 -94
- chaproev-1.2.6/docs/using.md +0 -4
- chaproev-1.2.6/mkdocs.yml +0 -16
- {chaproev-1.2.6 → chaproev-1.2.7}/.flake8 +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/.vscode/ltex.dictionary.en-US.txt +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/.vscode/settings.json +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/ChaProEV.pptx +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/ChaProEV.toml +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/Gemfile +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/LICENCE +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/MOPO_logo_chaproev on wht.svg +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/MOPO_logo_chaproev.png +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/MOPO_logo_chaproev.svg +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/MOPO_logo_main.svg +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/MOPO_logo_main_onwhite.svg +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/comparisons/comparison_template.toml +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/ChaProEV_workflow.png +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/Legs.png +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/Locations.png +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/Makefile +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/Trips.png +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/Vehicle_Temperature_correction_factor.svg +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/_config.yml +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/doctrees/environment.pickle +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/doctrees/index.doctree +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/html/.buildinfo +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/html/_sources/index.rst.txt +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/html/_static/alabaster.css +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/html/_static/basic.css +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/html/_static/custom.css +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/html/_static/doctools.js +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/html/_static/documentation_options.js +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/html/_static/file.png +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/html/_static/language_data.js +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/html/_static/minus.png +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/html/_static/plus.png +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/html/_static/pygments.css +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/html/_static/searchtools.js +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/html/_static/sphinx_highlight.js +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/html/genindex.html +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/html/index.html +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/html/objects.inv +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/html/search.html +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/build/html/searchindex.js +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/charging.md +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/make.bat +0 -0
- /chaproev-1.2.6/docs/consumption.md → /chaproev-1.2.7/docs/make_variants.md +0 -0
- /chaproev-1.2.6/docs/weather.md → /chaproev-1.2.7/docs/outputs.md +0 -0
- /chaproev-1.2.6/requirements_obsolete.txt → /chaproev-1.2.7/docs/run_time.md +0 -0
- /chaproev-1.2.6/docs/running_model,md → /chaproev-1.2.7/docs/running_model.md +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/docs/source/index.rst +0 -0
- /chaproev-1.2.6/src/ChaProEV/__init__.py → /chaproev-1.2.7/docs/writing.md +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/eu-emblem-low-res.jpg +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/requirements.txt +0 -0
- /chaproev-1.2.6/src/ChaProEV/py.typed → /chaproev-1.2.7/requirements_obsolete.txt +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/scenarios/Mopo/Latvia_car_own_driveway_2050.toml +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/scenarios/Mopo/Switzerland_car_own_driveway_2050.toml +0 -0
- {chaproev-1.2.6/scenarios/Mopo → chaproev-1.2.7/scenarios/bus_test}/XX_bus.toml +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/scenarios/local_impact_BEVs/baseline.toml +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/setup.cfg +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV/profiles.py +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV.egg-info/PKG-INFO-PC-28624 +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV.egg-info/PKG-INFO-PC-28624-2 +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV.egg-info/SOURCES-PC-28624-2.txt +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV.egg-info/SOURCES-PC-28624.txt +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV.egg-info/dependency_links.txt +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV.egg-info/requires-PC-28624-2.txt +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV.egg-info/requires-PC-28624.txt +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV.egg-info/requires.txt +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/src/ChaProEV.egg-info/top_level.txt +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/test_bus_moility_matrices/bus_weekday_in_holiday_week.csv +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/test_bus_moility_matrices/bus_weekday_in_workweek.csv +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/test_bus_moility_matrices/bus_weekend_in_holiday_week.csv +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/test_bus_moility_matrices/bus_weekend_in_workweek.csv +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/tests/test_battery_space.py +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/tests/test_charge_and_consumption.py +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/tests/test_empty_values.py +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/tests/test_same_output.py +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/todo.txt +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/variants/Mopo/XX_car.csv +0 -0
- {chaproev-1.2.6 → chaproev-1.2.7}/variants/Mopo.toml +0 -0
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ChaProEV
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.7
|
|
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
|
|
@@ -37,7 +37,8 @@ This repository contains the ChaProEV (Charging Profiles of Electric Vehicles)
|
|
|
37
37
|
model.
|
|
38
38
|
|
|
39
39
|
## Status
|
|
40
|
-
The ChaProEV model is
|
|
40
|
+
The ChaProEV model is currently released and useable. This version
|
|
41
|
+
has been used in projects and can be used in future projects.
|
|
41
42
|
Please contact the authors below if you have questions or requests to get
|
|
42
43
|
model runs at some point.
|
|
43
44
|
|
|
@@ -85,7 +86,18 @@ To run the model, you need to put a ChaProEV.toml configuration
|
|
|
85
86
|
in the folder where you run your model. You also need to have at least one scenario in your scenario/case_name (e.g. scenario/Mopo) folder. A
|
|
86
87
|
If you want to create varaints, then you need to add a case.toml (e.g. Mopo.toml) file in the variants folder and put a variant file in the variants/case (e.g. variants/Mopo) folder.
|
|
87
88
|
If you want to compute fleet-level values and/or do a car owndriveway/street charging split, you need to put some files in the input/case (e.g. input/Mopo) folder.
|
|
88
|
-
You can use the examples provided in this repository.
|
|
89
|
+
You can use the examples provided in this repository. You can also
|
|
90
|
+
unzip [this file](https://github.com/TNO/ChaProEV/blob/main/ChaProEV_test_case_configuration_files.zip)
|
|
91
|
+
into your working folder and use 'test_case' as your case name:
|
|
92
|
+
```python
|
|
93
|
+
from ChaProEV import ChaProEV
|
|
94
|
+
|
|
95
|
+
if __name__ == '__main__':
|
|
96
|
+
case_name: str = 'test_case'
|
|
97
|
+
ChaProEV.run_ChaProEV(case_name)
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
|
|
89
101
|
|
|
90
102
|
For examples of running ChaProEV and more configuration files,
|
|
91
103
|
you can visit the [ChaProEV runs repository](https://github.com/TNO/ChaProEV_runs).
|
|
@@ -13,7 +13,8 @@ This repository contains the ChaProEV (Charging Profiles of Electric Vehicles)
|
|
|
13
13
|
model.
|
|
14
14
|
|
|
15
15
|
## Status
|
|
16
|
-
The ChaProEV model is
|
|
16
|
+
The ChaProEV model is currently released and useable. This version
|
|
17
|
+
has been used in projects and can be used in future projects.
|
|
17
18
|
Please contact the authors below if you have questions or requests to get
|
|
18
19
|
model runs at some point.
|
|
19
20
|
|
|
@@ -61,7 +62,18 @@ To run the model, you need to put a ChaProEV.toml configuration
|
|
|
61
62
|
in the folder where you run your model. You also need to have at least one scenario in your scenario/case_name (e.g. scenario/Mopo) folder. A
|
|
62
63
|
If you want to create varaints, then you need to add a case.toml (e.g. Mopo.toml) file in the variants folder and put a variant file in the variants/case (e.g. variants/Mopo) folder.
|
|
63
64
|
If you want to compute fleet-level values and/or do a car owndriveway/street charging split, you need to put some files in the input/case (e.g. input/Mopo) folder.
|
|
64
|
-
You can use the examples provided in this repository.
|
|
65
|
+
You can use the examples provided in this repository. You can also
|
|
66
|
+
unzip [this file](https://github.com/TNO/ChaProEV/blob/main/ChaProEV_test_case_configuration_files.zip)
|
|
67
|
+
into your working folder and use 'test_case' as your case name:
|
|
68
|
+
```python
|
|
69
|
+
from ChaProEV import ChaProEV
|
|
70
|
+
|
|
71
|
+
if __name__ == '__main__':
|
|
72
|
+
case_name: str = 'test_case'
|
|
73
|
+
ChaProEV.run_ChaProEV(case_name)
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
|
|
65
77
|
|
|
66
78
|
For examples of running ChaProEV and more configuration files,
|
|
67
79
|
you can visit the [ChaProEV runs repository](https://github.com/TNO/ChaProEV_runs).
|
|
@@ -12,7 +12,7 @@ The parameters of a leg are:
|
|
|
12
12
|
|
|
13
13
|
1. **Name:** The name of the leg
|
|
14
14
|
2. **Vehicle:** The vehicle that runs the leg. If this does not correspond
|
|
15
|
-
to the [scenario vehicle name](scenario.md#
|
|
15
|
+
to the [scenario vehicle name](scenario.md#name), then the leg is not
|
|
16
16
|
declared. Note that when running a
|
|
17
17
|
scenario, you select one vehicle, so this is in principle not necessary.
|
|
18
18
|
The reason for having this is to allow the user to copy the baseline file
|
|
@@ -40,7 +40,7 @@ The parameters of a location are:
|
|
|
40
40
|
|
|
41
41
|
1. **Name**: The name of the location.
|
|
42
42
|
2. **Vehicle:** The vehicle that uses the location. If this does not correspond
|
|
43
|
-
to the [scenario vehicle name](scenario.md#
|
|
43
|
+
to the [scenario vehicle name](scenario.md#name), then the trip is not
|
|
44
44
|
declared. Note that when running a
|
|
45
45
|
scenario, you select one vehicle, so this is in principle not necessary.
|
|
46
46
|
The reason for having this is to allow the user to copy the baseline file
|
|
@@ -86,7 +86,7 @@ This value is set in the scenario files.
|
|
|
86
86
|
### Parameters
|
|
87
87
|
1. **Name**: The name of the trip.
|
|
88
88
|
2. **Vehicle:** The vehicle that does the trip. If this does not correspond
|
|
89
|
-
to the [scenario vehicle name](scenario.md#
|
|
89
|
+
to the [scenario vehicle name](scenario.md#name), then the trip is not
|
|
90
90
|
declared. Note that when running
|
|
91
91
|
a scenario, you select one vehicle, so this is in principle not necessary.
|
|
92
92
|
The reason for having this is to allow the user to copy the baseline file
|
|
@@ -181,3 +181,11 @@ Have one trip per day type for non-cars
|
|
|
181
181
|
|
|
182
182
|
Reference to day start hour
|
|
183
183
|
cross-links with scenario
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
## declare_class_instances
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
## compute_travel_impact
|
|
190
|
+
|
|
191
|
+
## get_trip_charging_sessions
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
# Purpose
|
|
2
|
+
The purpose of the ChaProEV.toml file is to set parameters
|
|
3
|
+
that are common for all your scenarios.
|
|
4
|
+
This page describes the various parameters.
|
|
5
|
+
You can use the navigation bar on the left to go directly to a group
|
|
6
|
+
of parameters (or a given parameter).
|
|
7
|
+
This mostly contains general parameters that should not change too much from case to case. As such, you can take the version provided in the repository (and possibly modify one or two things).
|
|
8
|
+
|
|
9
|
+
## variants
|
|
10
|
+
The variants section of the configuration file sets parameters
|
|
11
|
+
to create scenario [variants](variants.md) (see that page for
|
|
12
|
+
details).
|
|
13
|
+
|
|
14
|
+
### use_variants
|
|
15
|
+
Setting the use_variants parameters to true creates variants,
|
|
16
|
+
while setting it to false skips variant creation althogether.
|
|
17
|
+
|
|
18
|
+
### csv_version
|
|
19
|
+
|
|
20
|
+
Setting the csv_version to true parameters makes you use csv files
|
|
21
|
+
to define your variants (in a folder within the variants folder: this
|
|
22
|
+
folder needs to have the same name as your case). Setting it to false makes you use a toml file in the variants folder (case_name.toml).
|
|
23
|
+
|
|
24
|
+
### use_years_in_profiles
|
|
25
|
+
|
|
26
|
+
This is used to create different variants per year when doing
|
|
27
|
+
[car home own driveway and street parking splits](profiles.md#home-type-split)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## parallel_processing
|
|
33
|
+
This parallel processing section of the configuration file sets parameters to manage the [parallel processing/multiprocessing](multiprocessing.md) of the model (which reduces the model run time, see link for details).
|
|
34
|
+
|
|
35
|
+
### set_amount_of_processes
|
|
36
|
+
|
|
37
|
+
Set this as false if you want the amount of parallel processes to be determined by the model (via the [multiprocessing standard library of Python](https://docs.python.org/3/library/multiprocessing.html)). Set this to true if you want to set the amount of processes yourself.
|
|
38
|
+
|
|
39
|
+
### amount_for_scenarios
|
|
40
|
+
|
|
41
|
+
If you put true in set_amount_of_processes, provide a number of parallel processes here to run scenarios in parallel.
|
|
42
|
+
|
|
43
|
+
### amount_for_pickle_saves
|
|
44
|
+
If you put true in set_amount_of_processes, provide a number of parallel processes here to save the pickle output saves to other formats in parallel (see [writing module](writing.md) for details).
|
|
45
|
+
|
|
46
|
+
## interim_files
|
|
47
|
+
This concerns parameters for saving intermediary results to files.
|
|
48
|
+
|
|
49
|
+
### pickle
|
|
50
|
+
Set this to true to save interim results to pickle files.
|
|
51
|
+
Set this to false not to do this.
|
|
52
|
+
### consumption_tables_frequencies
|
|
53
|
+
Provide a list of consumption
|
|
54
|
+
tables frequencies (see [consumption module](consumption.md)). The default is the following list ['hourly', 'daily', 'weekly', 'monthly', 'yearly']
|
|
55
|
+
### save_consumption_table
|
|
56
|
+
Provide a list of booleans (true or false) to save a given frequency to file (this list needs to have the same length as the above list): true save a file for that frequency and false does not.
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
## profile_dataframe
|
|
62
|
+
These are the headers that appear in output dataframes.
|
|
63
|
+
|
|
64
|
+
### headers
|
|
65
|
+
This one is for profiles (at one-vehicle scale).
|
|
66
|
+
### fleet_headers
|
|
67
|
+
This one is for the fleet-level dataframes.
|
|
68
|
+
### do_fleet_tables
|
|
69
|
+
Set this to true to create fleet-level tables.
|
|
70
|
+
### fleet_file_name
|
|
71
|
+
The file name (has to be a csv inside the input/your_case folder)
|
|
72
|
+
containing the fleet characteristics.
|
|
73
|
+
See [here](input.md#fleets) for details about this file.
|
|
74
|
+
|
|
75
|
+
## sessions_dataframe
|
|
76
|
+
This is to create the session dataframes.
|
|
77
|
+
### properties
|
|
78
|
+
Those are the quantities we want to put in the session dataframes.
|
|
79
|
+
### dataframe_headers
|
|
80
|
+
Those are the headers of the session dataframes at the day level.
|
|
81
|
+
### run_dataframe_headers
|
|
82
|
+
Those are the headers of the session dataframes for the whole run.
|
|
83
|
+
### display_dataframe_headers
|
|
84
|
+
These are the headers of the display/final output dataframe headers at vehicle level.
|
|
85
|
+
### display_dataframe_index
|
|
86
|
+
These give the index of the display/final output dataframe headers.
|
|
87
|
+
### fleet_display_dataframe_headers
|
|
88
|
+
These are the headers of the display/final output dataframe headers at fleet
|
|
89
|
+
level.
|
|
90
|
+
## plots
|
|
91
|
+
This contains parameters for output plots (colors, styles, sizes, etc.).
|
|
92
|
+
### vehicle_temperature_efficiency
|
|
93
|
+
This set of parameters is for the [range-temperature](weather.md#range-and-temperature) plot.
|
|
94
|
+
#### style
|
|
95
|
+
This is a string with one of the [available Matplotlib styles](https://matplotlib.org/stable/gallery/style_sheets/style_sheets_reference.html).
|
|
96
|
+
#### source_data_folder
|
|
97
|
+
Folder where the data to plot is.
|
|
98
|
+
#### source_data_file
|
|
99
|
+
File containg the data to plot.
|
|
100
|
+
#### fit_color
|
|
101
|
+
The color name of fit line.
|
|
102
|
+
#### fit_line_size
|
|
103
|
+
The size of the fir line.
|
|
104
|
+
#### geotab_data_color
|
|
105
|
+
The color of the data points.
|
|
106
|
+
#### geotab_data_size
|
|
107
|
+
The size of the data points.
|
|
108
|
+
#### title_size
|
|
109
|
+
The size of the plot title.
|
|
110
|
+
|
|
111
|
+
## files
|
|
112
|
+
General file parameters.
|
|
113
|
+
### input_root
|
|
114
|
+
The name of the folder where your input data goes (it goes to a subfolder of this with the name of your case).
|
|
115
|
+
### output_root
|
|
116
|
+
The name of the folder where your output data goes (it goes to a subfolder of this with the name of your case).
|
|
117
|
+
### groupfile_root
|
|
118
|
+
This is for files that group data (such as (sqlite) databases or Excel workbooks) and will be the name of that grouping file.
|
|
119
|
+
|
|
120
|
+
### figures
|
|
121
|
+
Parameters for plots/figures.
|
|
122
|
+
#### dpi
|
|
123
|
+
Change this to change the resolution of the output figures.
|
|
124
|
+
#### outputs
|
|
125
|
+
Indicate if you want to save your (Matplotlib) figures (true if you do, false if you don't) in various formats.
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
### dataframe_outputs
|
|
129
|
+
Indicate if you want to save your Pandas DataFrames in the
|
|
130
|
+
listed formats (put a true if you want to do so, false if you don't).
|
|
131
|
+
Clipboard saves to the local clipboard, not a file.
|
|
132
|
+
|
|
133
|
+
## maps
|
|
134
|
+
Parameters for making maps.
|
|
135
|
+
## map_data_folder
|
|
136
|
+
The folder where the map data is.
|
|
137
|
+
## area_data_file_name
|
|
138
|
+
The file containing map areas.
|
|
139
|
+
## general_exclusion_codes
|
|
140
|
+
Excluded map codes.
|
|
141
|
+
## border_data_file_prefix
|
|
142
|
+
The prefix of the border data file.
|
|
143
|
+
## border_data_file_suffix
|
|
144
|
+
The suffix of the border data file.
|
|
145
|
+
## points_data_file_prefix
|
|
146
|
+
The prefix of the points data file.
|
|
147
|
+
## points_data_file_suffix
|
|
148
|
+
The suffix of the points data file.
|
|
149
|
+
## country_code_header
|
|
150
|
+
The header we use for country codes.
|
|
151
|
+
## country_code_header_in_map_data
|
|
152
|
+
The country code header in tnhe source data.
|
|
153
|
+
## heat_bar_map
|
|
154
|
+
The heat bar map/scale we want to use for maps (is the name of a
|
|
155
|
+
[color bar](#color_bars)).
|
|
156
|
+
|
|
157
|
+
## colors
|
|
158
|
+
Definitions of custom colors (with RGB values, from 0 to 255).
|
|
159
|
+
## color_bars
|
|
160
|
+
You can deine color bars here, by listing the colors they use (in order).
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
## unit_conversions
|
|
164
|
+
This contains various constants used for unit conversions,
|
|
165
|
+
such as the amount of Joules in a kiloWatt-hour.
|
|
166
|
+
Some are grouped (time conversions).
|
|
167
|
+
The times subpart also contains the codes for weekend day numbers
|
|
168
|
+
and the index of the first hour in the year (often 0,
|
|
169
|
+
but sometimes 1, as for the SPINE toolbox).
|
|
170
|
+
## numbers
|
|
171
|
+
This contains a threshold to avoid issues with float precision and exteremely small values that are actually zero.
|
|
172
|
+
|
|
173
|
+
## consumption
|
|
174
|
+
This contains settings (mostly headers and display names) related to
|
|
175
|
+
the [connusmption](consumption.md) tables.
|
|
176
|
+
### energy_carriers
|
|
177
|
+
A list of the energy carriers that come in the consumption table.
|
|
178
|
+
### consumption_table_name
|
|
179
|
+
The name of the consumption table.
|
|
180
|
+
### time_header
|
|
181
|
+
The header used for the time index in the consumption table.
|
|
182
|
+
### distance_header
|
|
183
|
+
The header used for the distance column in the consumption table.
|
|
184
|
+
### fleet_distance_header
|
|
185
|
+
The header used for the distance column in the fleet consumption table.
|
|
186
|
+
### energy_carriers_consumption_names
|
|
187
|
+
The headers for each emergy carrier in the consumption table.
|
|
188
|
+
### fleet_energy_carriers_consumption_names
|
|
189
|
+
The headers for each emergy carrier in the fleet consumption table.
|
|
190
|
+
|
|
191
|
+
## home_type
|
|
192
|
+
These are parametrers related to the [home type split](profiles.md#home-type-split) (split for cars between cars with their own driveway and street parking).
|
|
193
|
+
### do_car_home_type_split
|
|
194
|
+
Set this to true to compute the split. Set it to false not to do it.
|
|
195
|
+
### percentages_file
|
|
196
|
+
The file name (has to be a csv inside the input/your_case folder)
|
|
197
|
+
containing the spli.
|
|
198
|
+
See [here](input.md#car-own-driveway-percentage) for details about this file.
|
|
199
|
+
|
|
200
|
+
### index_name
|
|
201
|
+
The index header in the source file.
|
|
202
|
+
|
|
203
|
+
### own_driveway_name
|
|
204
|
+
The header for the own driveway percentage. Also used for the output profile file names.
|
|
205
|
+
### on_street_name
|
|
206
|
+
The header for the street parking percentage. Used for the output profile file names.
|
|
207
|
+
### profiles_index
|
|
208
|
+
The index for the profile outputs.
|
|
209
|
+
### sessions_index
|
|
210
|
+
The index for the sessions outputs.
|
|
211
|
+
### sessions_values_columns
|
|
212
|
+
The columns of the sessions dataframes.
|
|
213
|
+
|
|
214
|
+
## sessions
|
|
215
|
+
Parameters used for the [sessions](profiles.md#sessions).
|
|
216
|
+
### produce
|
|
217
|
+
Set to true if you want to create [sessions](profiles.md#sessions), to
|
|
218
|
+
false if you don't.
|
|
219
|
+
|
|
220
|
+
### generate_profiles
|
|
221
|
+
Set to true if you want to [generate profiles from sessions][scenarios_module.md#Generate-profiles-from-sessions], to false if you don't.
|
|
222
|
+
## standard_profiles
|
|
223
|
+
|
|
224
|
+
### produce
|
|
225
|
+
Set to true if you want to produce [standard charging profiles](profiles.md#standard-profiles), false if you don't.
|
|
226
|
+
|
|
227
|
+
## progress_bars
|
|
228
|
+
Parameters related to displaying progress bars.
|
|
229
|
+
### display_scenario_run
|
|
230
|
+
Set to true to show a progress bar for the computing of scenarios, false if you don't.
|
|
231
|
+
### scenario_run_description
|
|
232
|
+
Text to display for the scenarios progress bar.
|
|
233
|
+
### display_saving_pool_run
|
|
234
|
+
Set to true to show a progress bar for the saving of output files, false if you don't.
|
|
235
|
+
### saving_pool_run_description
|
|
236
|
+
Text to display for the output file saving progress bar.
|
|
237
|
+
|
|
238
|
+
## discharge
|
|
239
|
+
Parameters related to vehicle discharge.
|
|
240
|
+
### no_discharge_efficiency_output
|
|
241
|
+
Message to display if the discharge efficiencncy value is empty.
|
|
242
|
+
### no_charge_efficiency_output
|
|
243
|
+
Message to display if the charge efficiencncy value is empty.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Mobility
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Module parameters
|
|
5
|
+
|
|
6
|
+
## get_trip_probabilities_per_day_type
|
|
7
|
+
|
|
8
|
+
### get_trip_probabilities_per_day_type_other_vehicles
|
|
9
|
+
### get_car_trip_probabilities_per_day_type
|
|
10
|
+
|
|
11
|
+
## compute_start_location_split
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## make_mobility_data
|
|
15
|
+
### Weighted quantities
|
|
16
|
+
|
|
17
|
+
## get_day_type_start_location_split
|
|
18
|
+
|
|
19
|
+
## get_run_mobility_matrix
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
uses several cores at the same time
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
```python
|
|
8
|
+
scenarios: ty.List[ty.Dict] = load_scenarios(case_name)
|
|
9
|
+
|
|
10
|
+
number_of_parallel_processes: int = general_parameters[
|
|
11
|
+
'parallel_processing'
|
|
12
|
+
]['number_of_parallel_processes']['for_scenarios']
|
|
13
|
+
with Pool(number_of_parallel_processes) as scenarios_pool:
|
|
14
|
+
scenarios_pool.starmap(
|
|
15
|
+
run_scenario,
|
|
16
|
+
zip(scenarios, repeat(case_name), repeat(general_parameters)),
|
|
17
|
+
)
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
speeds up considerably
|
|
21
|
+
|
|
22
|
+
set this as false if you want the amount of parallel processes to be determined by the model (via the [multiprocessing standard library of Python](https://docs.python.org/3/library/multiprocessing.html)
|