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

Method __init__

codecarbon/external/task.py:15–19  ·  view source on GitHub ↗
(self, task_name)

Source from the content-addressed store, hash-verified

13 emissions_data: EmissionsData
14
15 def __init__(self, task_name): # , task_measure
16 self.task_id: str = task_name + uuid4().__str__()
17 self.task_name: str = task_name
18 self.start_time = time.perf_counter()
19 self.is_active = True
20
21 def out(self):
22 return TaskEmissionsData(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected