Skip to content

Commit 110cf21

Browse files
committed
moving parameter to env parameter
1 parent 8bca822 commit 110cf21

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

microbiorust-py/benchmarks/bench_pipeline.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def _run_logic(self, engine, context):
4242
Routes execution based on engine/context and tracks energy with CodeCarbon.
4343
Stores last measured energy per engine in self._energy_joules.
4444
"""
45-
tracker = OfflineEmissionsTracker(measure_power_secs=1, log_level="CRITICAL", country_iso_code="USA", carbon_intensity=475)
45+
os.environ["CODECARBON_CARBON_INTENSITY"] = "475"
46+
tracker = OfflineEmissionsTracker(measure_power_secs=1, log_level="CRITICAL", country_iso_code="USA")
4647
tracker.start()
4748

4849
try:

0 commit comments

Comments
 (0)