diff --git a/python/fastsim/demos/demo_hev.py b/python/fastsim/demos/demo_hev.py index 3e4d8ca6..e55ca35f 100644 --- a/python/fastsim/demos/demo_hev.py +++ b/python/fastsim/demos/demo_hev.py @@ -30,11 +30,11 @@ veh = fsim.Vehicle.from_resource("2016_TOYOTA_Prius_Two.yaml") # veh_dict = veh.to_pydict(flatten=False) # veh_dict['pt_type']['HybridElectricVehicle'][ -# 'pt_cntrl']['Fastsim2']['speed_soc_accel_buffer'] += 0.0 -# speed_accel_soc_buffer = veh_dict['pt_type']['HybridElectricVehicle'][ -# 'pt_cntrl']['Fastsim2']['speed_soc_accel_buffer'] +# 'pt_cntrl']['RGWDB']['speed_soc_disch_buffer'] += 0.0 +# speed_disch_soc_buffer = veh_dict['pt_type']['HybridElectricVehicle'][ +# 'pt_cntrl']['RGWDB']['speed_soc_disch_buffer'] # veh_dict['pt_type']['HybridElectricVehicle'][ -# 'pt_cntrl']['Fastsim2']['speed_soc_fc_on_buffer'] = speed_accel_soc_buffer * 1.1 +# 'pt_cntrl']['RGWDB']['speed_soc_fc_on_buffer'] = speed_disch_soc_buffer * 1.1 # veh = veh.from_pydict(veh_dict) veh_no_save = veh.copy() @@ -236,7 +236,7 @@ def plot_fc_pwr() -> Tuple[Figure, Axes]: ) ax[2].plot( df["cyc.time_seconds"], - df["veh.pt_type.HybridElectricVehicle.res.history.soc_accel_buffer"], + df["veh.pt_type.HybridElectricVehicle.res.history.soc_disch_buffer"], label='f3 accel buffer', alpha=0.5, ) @@ -361,7 +361,7 @@ def plot_fc_energy() -> Tuple[Figure, Axes]: ) ax[2].plot( df["cyc.time_seconds"], - df["veh.pt_type.HybridElectricVehicle.res.history.soc_accel_buffer"], + df["veh.pt_type.HybridElectricVehicle.res.history.soc_disch_buffer"], label='f3 accel buffer', alpha=0.5, ) @@ -471,7 +471,7 @@ def plot_res_pwr() -> Tuple[Figure, Axes]: ) ax[2].plot( df["cyc.time_seconds"], - df["veh.pt_type.HybridElectricVehicle.res.history.soc_accel_buffer"], + df["veh.pt_type.HybridElectricVehicle.res.history.soc_disch_buffer"], label='f3 accel buffer', alpha=0.5, ) @@ -569,7 +569,7 @@ def plot_res_energy() -> Tuple[Figure, Axes]: ) ax[2].plot( df["cyc.time_seconds"], - df["veh.pt_type.HybridElectricVehicle.res.history.soc_accel_buffer"], + df["veh.pt_type.HybridElectricVehicle.res.history.soc_disch_buffer"], label='f3 accel buffer', alpha=0.5, )