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

Method __init__

tests/test_custom_handler.py:18–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16
17class CustomOutput(BaseOutput):
18 def __init__(self):
19 self.log: List[EmissionsData] = list()
20
21 def live_out(self, delta: EmissionsData, total: EmissionsData):
22 self.log.append(total)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected