From 4efe1ee7dd83b6704e8eaa014445366e75709b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20Hag=20L=C3=B8vstad?= Date: Fri, 13 Sep 2024 11:45:25 +0200 Subject: [PATCH 1/2] Fix test with new defaults --- tests/intensity/test_intensity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/intensity/test_intensity.py b/tests/intensity/test_intensity.py index 30358bb..a9704a4 100644 --- a/tests/intensity/test_intensity.py +++ b/tests/intensity/test_intensity.py @@ -146,7 +146,7 @@ def set_expected_message(is_prediction, success, carbon_intensity): message = f"Current carbon intensity is {carbon_intensity:.2f} gCO2/kWh at detected location: {fallback_address}." else: message = (f"Live carbon intensity could not be fetched at detected location: {detected_address}. " - f"Defaulted to average carbon intensity for DK in 2021 of 149.75 gCO2/kWh. " + f"Defaulted to average carbon intensity for DK in 2023 of 151.65 gCO2/kWh. " f"at detected location: {fallback_address}.") return message # Test scenarios From 18e4b3cb4ee772c8c707ece1db6426120754d5e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20Hag=20L=C3=B8vstad?= Date: Fri, 13 Sep 2024 11:45:49 +0200 Subject: [PATCH 2/2] breaking: change default monitor_epochs to -1 --- carbontracker/tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/carbontracker/tracker.py b/carbontracker/tracker.py index 2e94ad3..7a025e1 100644 --- a/carbontracker/tracker.py +++ b/carbontracker/tracker.py @@ -296,7 +296,7 @@ def __init__( self, epochs, epochs_before_pred=1, - monitor_epochs=1, + monitor_epochs=-1, update_interval=10, interpretable=True, stop_and_confirm=False,