Defines dataset column name transformations for LDV and HDV datasets
Transforms the LDV dataset to use the standardized data columns
Changes immediate.py and smart_charging.py to use these standardized data columns, which will also work for the HDV case
The plan for the next PR is to have the immediate.py and smart_charging.py code to handle the HDV case and eliminate the extra HDV files. I'll also update with HDV-specific integration tests.
Testing
existing integration tests pass
Where to look
Look at ldv_columns_transform and hdv_columns_transform in const.py. The LDV columns are transformed in data_helper.py.
Pull Request doc
Purpose
Help merge the existing LDV and HDV implementations into a common implementation.
This PR also makes
charging_efficiency
a parameter in theget_constraints
andcalculate_optimization
functions, which is part of one of the other work items: https://github.com/Breakthrough-Energy/PreREISE/issues/308What the code is doing
const.py
immediate.py
andsmart_charging.py
to use these standardized data columns, which will also work for the HDV caseThe plan for the next PR is to have the
immediate.py
andsmart_charging.py
code to handle the HDV case and eliminate the extra HDV files. I'll also update with HDV-specific integration tests.Testing
existing integration tests pass
Where to look
Look at
ldv_columns_transform
andhdv_columns_transform
inconst.py
. The LDV columns are transformed indata_helper.py
.Time estimate
~10-20min