MCPcopy Create free account
hub / github.com/mlco2/codecarbon / __init__

Method __init__

tests/test_cpu.py:584–591  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

582 def test_set_cpu_tracking_skips_tdp_when_rapl_available(self):
583 class DummyTracker:
584 def __init__(self):
585 self._conf = {"cpu_physical_count": 1}
586 self._force_cpu_power = None
587 self._output_dir = ""
588 self._rapl_include_dram = False
589 self._rapl_prefer_psys = False
590 self._tracking_mode = "machine"
591 self._hardware = []
592
593 tracker = DummyTracker()
594 resource_tracker = ResourceTracker(tracker)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected