private void LoadSpectralLibraries(out List <string> errors) { errors = new List <string>(); try { SpectralLibrary = new SpectralLibrary(SpectralLibraryPaths.ToList()); } catch (Exception e) { SpectralLibrary = null; errors.Add("Problem loading spectral library: " + e.Message); } }
public void CleanUpResources() { lock (ThreadLocker) { AllPsms.Clear(); FilteredListOfPsms.Clear(); PsmResultFilePaths.Clear(); SpectraFilePaths.Clear(); SpectralLibraryPaths.Clear(); foreach (var connection in MsDataFiles) { connection.Value.CloseDynamicConnection(); } MsDataFiles.Clear(); if (SpectralLibrary != null) { SpectralLibrary.CloseConnections(); } } }