Skip to content

Commit

Permalink
fixed temperature units
Browse files Browse the repository at this point in the history
  • Loading branch information
calbaker committed Jan 31, 2025
1 parent 235a119 commit 5db2dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cal_and_val/thermal/cal_hev.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def veh_init(cyc_file_stem: str, dfs: Dict[str, pd.DataFrame]) -> fsim.Vehicle:
dfs[cyc_file_stem][eng_clnt_temp_column][0] + celsius_to_kelvin_offset
# set HVAC set point temperature
te_set = next(iter([v["set temp [*C]"] for k, v in cyc_files_dict.items() if k.replace(".txt", "") == cyc_file_stem]))
vd['hvac']['LumpedCabin']['te_set_kelvin'] = te_set
vd['hvac']['LumpedCabin']['te_set_kelvin'] = te_set + celsius_to_kelvin_offset

return fsim.Vehicle.from_pydict(vd, skip_init=False)

Expand Down

0 comments on commit 5db2dfc

Please sign in to comment.