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

Function createExperiment

webapp/src/api/experiments.ts:11–18  ·  view source on GitHub ↗
(
    experiment: ExperimentInput,
)

Source from the content-addressed store, hash-verified

9import { DateRange } from "react-day-picker";
10
11export async function createExperiment(
12 experiment: ExperimentInput,
13): Promise<Experiment> {
14 return await fetchApi("/experiments", ExperimentSchema, {
15 method: "POST",
16 body: JSON.stringify(experiment),
17 });
18}
19
20export async function getExperiments(projectId: string): Promise<Experiment[]> {
21 try {

Callers 1

handleSaveFunction · 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…