Skip to content

Commit

Permalink
fixed updated variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
calbaker committed Dec 26, 2024
1 parent 7db74e3 commit 12a34b8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions python/fastsim/demos/demo_hev.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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,
)
Expand Down Expand Up @@ -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,
)
Expand Down Expand Up @@ -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,
)
Expand Down Expand Up @@ -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,
)
Expand Down

0 comments on commit 12a34b8

Please sign in to comment.