Implemented the following as discussed with @mbbruch. Verified that the changes work but please check the implementation @mbbruch @calbaker
add a drag_coeff_functionvariable to the TrainPlannerConfig object, which is a function variable that defaults to None
in test_case_sweep.py create a calc_ps_drag_coeff function that takes as input any needed params from the rail vehicle and/or locomotive yamls, plus gap size and # of cars, and add that function definition to the TrainPlannerConfiginstantiation
within run_train_planner, call config.drag_coeff_function
Implemented the following as discussed with @mbbruch. Verified that the changes work but please check the implementation @mbbruch @calbaker
add a
drag_coeff_function
variable to theTrainPlannerConfig
object, which is a function variable that defaults to Nonein
test_case_sweep.py
create acalc_ps_drag_coeff
function that takes as input any needed params from the rail vehicle and/or locomotive yamls, plus gap size and # of cars, and add that function definition to theTrainPlannerConfig
instantiationwithin
run_train_planner
, callconfig.drag_coeff_function