@@ -98,7 +98,7 @@ function findExperiment(index: number) {
9898export async function addExperiment (
9999 config : PartialConfig = { } ,
100100 name ?: string ,
101- description ?: string ,
101+ description ?: string
102102) {
103103 const newExperiment : Experiment = {
104104 name : name ?? `My experiment ${ experiments . length } ` ,
@@ -149,7 +149,7 @@ export async function modifyExperiment(
149149 index : number ,
150150 newConfig : PartialConfig ,
151151 name : string ,
152- description : string ,
152+ description : string
153153) {
154154 setExperiments (
155155 index ,
@@ -160,14 +160,14 @@ export async function modifyExperiment(
160160 e . permutations = e . permutations . map ( ( perm ) => {
161161 const config = mergeConfigurations (
162162 newConfig ,
163- pruneDefaults ( perm . config ) ,
163+ pruneDefaults ( perm . config )
164164 ) ;
165165 return {
166166 ...perm ,
167167 config,
168168 } ;
169169 } ) ;
170- } ) ,
170+ } )
171171 ) ;
172172 await runExperiment ( index ) ;
173173}
@@ -176,25 +176,25 @@ export async function setPermutationConfigInExperiment(
176176 experimentIndex : number ,
177177 permutationIndex : number ,
178178 config : PartialConfig ,
179- name : string ,
179+ name : string
180180) {
181181 setExperiments (
182182 experimentIndex ,
183183 "permutations" ,
184184 permutationIndex === - 1
185185 ? findExperiment ( experimentIndex ) . permutations . length
186186 : permutationIndex ,
187- { config, name } ,
187+ { config, name }
188188 ) ;
189189 await runExperiment ( experimentIndex ) ;
190190}
191191
192192export async function deletePermutationFromExperiment (
193193 experimentIndex : number ,
194- permutationIndex : number ,
194+ permutationIndex : number
195195) {
196196 setExperiments ( experimentIndex , "permutations" , ( perms ) =>
197- perms . filter ( ( _ , i ) => i !== permutationIndex ) ,
197+ perms . filter ( ( _ , i ) => i !== permutationIndex )
198198 ) ;
199199}
200200
@@ -208,7 +208,7 @@ export function findPermutation(exp: Experiment, permutationName: string) {
208208
209209export function promotePermutationToExperiment (
210210 experimentIndex : number ,
211- permutationIndex : number ,
211+ permutationIndex : number
212212) {
213213 const exp = findExperiment ( experimentIndex ) ;
214214 const perm = exp . permutations [ permutationIndex ] ;
@@ -220,22 +220,22 @@ export function promotePermutationToExperiment(
220220
221221export function duplicatePermutation (
222222 experimentIndex : number ,
223- permutationIndex : number ,
223+ permutationIndex : number
224224) {
225225 const exp = findExperiment ( experimentIndex ) ;
226226 const perm = exp . permutations [ permutationIndex ] ;
227227 setPermutationConfigInExperiment (
228228 experimentIndex ,
229229 - 1 ,
230230 structuredClone ( perm . config ) ,
231- `Copy of ${ perm . name } ` ,
231+ `Copy of ${ perm . name } `
232232 ) ;
233233 runExperiment ( experimentIndex ) ;
234234}
235235
236236export function swapPermutationAndReferenceConfiguration (
237237 experimentIndex : number ,
238- permutationIndex : number ,
238+ permutationIndex : number
239239) {
240240 const exp = findExperiment ( experimentIndex ) ;
241241 const refConfig = structuredClone ( exp . reference . config ) ;
@@ -248,7 +248,7 @@ export function swapPermutationAndReferenceConfiguration(
248248 "permutations" ,
249249 permutationIndex ,
250250 "config" ,
251- refConfig ,
251+ refConfig
252252 ) ;
253253 // TODO should names also be swapped?
254254 runExperiment ( experimentIndex ) ;
0 commit comments