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

Class CustomOutput

tests/test_custom_handler.py:17–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
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)
23
24
25class TestCarbonCustomHandler(unittest.TestCase):

Callers 2

test_decorator_flushMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_decorator_flushMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…