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

Method live_out

tests/test_custom_handler.py:21–22  ·  view source on GitHub ↗
(self, delta: EmissionsData, total: EmissionsData)

Source from the content-addressed store, hash-verified

19 self.log: List[EmissionsData] = list()
20
21 def live_out(self, delta: EmissionsData, total: EmissionsData):
22 self.log.append(total)
23
24
25class TestCarbonCustomHandler(unittest.TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected