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

Function makeRunRow

webapp/src/api/mock/data.ts:227–243  ·  view source on GitHub ↗
(args: {
    runId: string;
    experimentId: string;
    timestamp: string;
    emissions: number;
    energyConsumed: number;
    durationSeconds: number;
})

Source from the content-addressed store, hash-verified

225}
226
227function makeRunRow(args: {
228 runId: string;
229 experimentId: string;
230 timestamp: string;
231 emissions: number;
232 energyConsumed: number;
233 durationSeconds: number;
234}): MockRunRow {
235 return {
236 run_id: args.runId,
237 experiment_id: args.experimentId,
238 emissions: args.emissions,
239 timestamp: args.timestamp,
240 energy_consumed: args.energyConsumed,
241 duration: args.durationSeconds,
242 };
243}
244
245// ─── Composed data (built top-down from the aggregate root) ────────────────
246

Callers 1

data.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…