Skip to content

Commit

Permalink
Merge pull request #81 from Snailed/dev
Browse files Browse the repository at this point in the history
Breaking: Change default monitor_epochs to -1
  • Loading branch information
Snailed authored Sep 13, 2024
2 parents fd1d2df + 18e4b3c commit 6b1de16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion carbontracker/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tests/intensity/test_intensity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b1de16

Please sign in to comment.