Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions sim/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def fmt_elapsed(minute_of_day: float, start_time_hour: float) -> str:
)

print("\nSpeed sweep summary")
print(" Speed (mph) | Final SoC (%) | Laps | Distance (mi) | 10% reached at")
print(" ----------- | ------------- | ---- | ------------- | --------------")
print(" Speed (mph) | Final SoC (%) | Target SoC% | SoC Margin (%) | Energy Margin (Wh) | Laps | Distance (mi) | Target SoC% reached at | Feasible?")
print(" ----------- | ------------- | ----------- | -------------- | ------------------ | ---- | ------------- | ---------------------- | ---------")
for row in rows:
cutoff = (
"Full 8h"
Expand All @@ -109,7 +109,8 @@ def fmt_elapsed(minute_of_day: float, start_time_hour: float) -> str:
)
print(
f" {row['mph']:>11.0f} | {row['final_soc_pct']:>13.1f} |"
f" {row['laps']:>4} | {row['distance_miles']:>13.1f} | {cutoff:>11}"
f" {row['target_soc_pct']:>10.1f}% | {row['soc_margin_pct']:>13.1f}% | {row['energy_margin_wh']:>18.1f} |"
f" {row['laps']:>4} | {row['distance_miles']:>13.1f} | {cutoff:>22} | {'Yes' if row['feasibility'] else 'No'}"
)


Expand Down