public void LoadCompleteInformation(classificationReportCollectionSettings setup, folderNode folder, ILogBuilder logger) { DeployPath(folder.path); rootFolder = new folderStructure(rootPath, "Root", "Root directory with experiment reports"); var resultFiles = rootFolder.findFiles(setup.FILENAME_CLASSIFICATION_RESULTS, SearchOption.AllDirectories); String basePath = rootPath; foreach (String rFile in resultFiles) { String dirPath = Path.GetDirectoryName(rFile); String dirSubPath = dirPath.Substring(basePath.Length); classificationReportExpanded rep = classificationReportExpanded.LoadSimpleReport(rFile, logger); folderNode reportFolder = rootFolder.Add(dirSubPath, rep.Name, "Experiment [" + rep.Name + "] data"); rep.folder = reportFolder; String subCollectionDirPath = reportFolder.parent.path.Substring(rootFolder.path.Length); classificationReportCollection hostCollection = this; if (!subCollectionDirPath.isNullOrEmpty()) { if (reportFolder.parent != rootFolder) { hostCollection = AddOrGetChild(subCollectionDirPath); } } classificationReportExpanded rep_existing = hostCollection.FirstOrDefault(x => x.filepath == rep.filepath); if (rep_existing != null) { if (rep.filecreation > rep_existing.filecreation) { hostCollection.Remove(rep_existing); logger.log("Replacing older report [" + rep_existing.filepath + "] with new version"); } } hostCollection.Add(rep); reportCompleteList.Add(rep); //if (LoadExtraInformation != null) //{ // LoadExtraInformation.Invoke(rep, hostCollection, setup, logger); //} } logger.log("Reports (" + Count + ") directly imported from [" + rootPath + "] - Total reports, including [" + Children.Count + "] sub collections is [" + resultFiles.Count + "]"); }
public void LoadCollectionDescription(classificationReportCollectionSettings setup) { String info_p = rootFolder.findFile(setup.FILENAME_COLLECTION_INFO); if (info_p != "") { description = File.ReadAllText(info_p); } }
public void DeployInformation(classificationReportCollectionSettings setup, ILogBuilder log) { }