public static LocalExperimentManager OpenExperiments(string experimentsFolder, IDomainResolver domainResolver) { FileStorage storage = FileStorage.Open(experimentsFolder); LocalExperimentManager manager = new LocalExperimentManager(storage, domainResolver); return(manager); }
public static LocalExperimentManager NewExperiments(string experimentsFolder, ReferenceExperiment reference, IDomainResolver domainResolver) { ExperimentDefinition def = MakeRelativeDefinition(experimentsFolder, reference.Definition); ReferenceExperiment relRef = new ReferenceExperiment(def, reference.Repetitions, reference.ReferenceValue); FileStorage storage = FileStorage.Open(experimentsFolder); storage.Clear(); storage.SaveReferenceExperiment(relRef); LocalExperimentManager manager = new LocalExperimentManager(storage, domainResolver); return(manager); }