From eb097dc628fdec7eb645f552f4fd175ca1ab7297 Mon Sep 17 00:00:00 2001 From: Aidan Liu Date: Sun, 27 Sep 2026 17:54:11 -0400 Subject: [PATCH 1/5] start --- sim/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sim/main.py b/sim/main.py index ab45645..c8e538e 100644 --- a/sim/main.py +++ b/sim/main.py @@ -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 | Laps | Distance (mi) | Target SoC% reached at") + print(" ----------- | ------------- | ---------- | ---- | ------------- | ----------------------") for row in rows: cutoff = ( "Full 8h" From 7d4cbd8d4c610dd210260c969f3fb9e88bdceb7a Mon Sep 17 00:00:00 2001 From: Aidan Liu Date: Fri, 2 Oct 2026 01:57:59 -0400 Subject: [PATCH 2/5] add missing stats --- sim/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sim/main.py b/sim/main.py index c8e538e..df654cc 100644 --- a/sim/main.py +++ b/sim/main.py @@ -98,9 +98,11 @@ def fmt_elapsed(minute_of_day: float, start_time_hour: float) -> str: use_api_weather=True, ) + print(rows[0].keys()) + print("\nSpeed sweep summary") - print(" Speed (mph) | Final SoC (%) | Target SoC | Laps | Distance (mi) | Target SoC% reached at") - print(" ----------- | ------------- | ---------- | ---- | ------------- | ----------------------") + print(" Speed (mph) | Final SoC (%) | Target SoC% | SoC Margin (%) | Energy Margin (Wh) | Laps | Distance (mi) | Target SoC% reached at") + print(" ----------- | ------------- | ----------- | -------------- | ------------------ | ---- | ------------- | ----------------------") for row in rows: cutoff = ( "Full 8h" @@ -109,6 +111,7 @@ 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['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:>11}" ) From 6d45b90768b1e0d6b9db297b9f5ddcf470f736c0 Mon Sep 17 00:00:00 2001 From: Aidan Liu Date: Fri, 2 Oct 2026 13:26:09 -0400 Subject: [PATCH 3/5] remove keys print --- sim/main.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/sim/main.py b/sim/main.py index df654cc..429ec68 100644 --- a/sim/main.py +++ b/sim/main.py @@ -98,8 +98,6 @@ def fmt_elapsed(minute_of_day: float, start_time_hour: float) -> str: use_api_weather=True, ) - print(rows[0].keys()) - print("\nSpeed sweep summary") print(" Speed (mph) | Final SoC (%) | Target SoC% | SoC Margin (%) | Energy Margin (Wh) | Laps | Distance (mi) | Target SoC% reached at") print(" ----------- | ------------- | ----------- | -------------- | ------------------ | ---- | ------------- | ----------------------") From 617c04c02be3d5ae0cfe1b2a83d22d67d09dd6e0 Mon Sep 17 00:00:00 2001 From: Aidan Liu Date: Fri, 2 Oct 2026 13:56:23 -0400 Subject: [PATCH 4/5] fdrmatting --- sim/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/main.py b/sim/main.py index 429ec68..57f1584 100644 --- a/sim/main.py +++ b/sim/main.py @@ -110,7 +110,7 @@ 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['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:>11}" + f" {row['laps']:>4} | {row['distance_miles']:>13.1f} | {cutoff:>22}" ) From a392543e64821b980a6c0da80fb2aa43b1aae5d0 Mon Sep 17 00:00:00 2001 From: Aidan Liu Date: Fri, 2 Oct 2026 23:27:46 -0400 Subject: [PATCH 5/5] Add feasibility and fix typo --- sim/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sim/main.py b/sim/main.py index 57f1584..d8148e7 100644 --- a/sim/main.py +++ b/sim/main.py @@ -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 (%) | Target SoC% | SoC Margin (%) | Energy Margin (Wh) | Laps | Distance (mi) | Target SoC% 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" @@ -110,7 +110,7 @@ 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['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}" + f" {row['laps']:>4} | {row['distance_miles']:>13.1f} | {cutoff:>22} | {'Yes' if row['feasibility'] else 'No'}" )