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

Function getExperiments

webapp/src/api/experiments.ts:20–30  ·  view source on GitHub ↗
(projectId: string)

Source from the content-addressed store, hash-verified

18}
19
20export async function getExperiments(projectId: string): Promise<Experiment[]> {
21 try {
22 return await fetchApi(
23 `/projects/${projectId}/experiments`,
24 ExperimentSchema.array(),
25 );
26 } catch (error) {
27 console.error("[getExperiments] failed", error);
28 return [];
29 }
30}
31
32export async function getProjectEmissionsByExperiment(
33 projectId: string,

Callers 2

ProjectDashboardPageFunction · 0.90
useProjectDashboardFunction · 0.90

Calls 1

fetchApiFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…