Skip to content

Commit

Permalink
Run experiment after upload and permutation duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Oct 17, 2024
1 parent 9e27526 commit 1b4bb76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/class-solid/src/lib/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export async function addExperiment(
await runExperiment(experiments.length - 1);
}

export function uploadExperiment(rawData: unknown) {
export async function uploadExperiment(rawData: unknown) {
const upload = parseExperimentConfig(rawData);
const experiment: Experiment = {
name: upload.name, // TODO check name is not already used
Expand All @@ -137,6 +137,7 @@ export function uploadExperiment(rawData: unknown) {
running: false,
};
setExperiments(experiments.length, experiment);
await runExperiment(experiments.length - 1);
}

export function duplicateExperiment(id: number) {
Expand Down Expand Up @@ -248,6 +249,7 @@ export function duplicatePermutation(
structuredClone(perm.config),
`Copy of ${perm.name}`,
);
runExperiment(experimentIndex);
}

export function swapPermutationAndReferenceConfiguration(
Expand Down

0 comments on commit 1b4bb76

Please sign in to comment.