Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raw file connection not closing #709

Merged

Conversation

elaboy
Copy link
Contributor

@elaboy elaboy commented Jun 9, 2023

Thermo Raw files were not closing once MM finished tasks., users had to close MM in order to not get the error indicating that the file was still being used. Tackled this issue including any method accessing the file inside a using statement.

Tested reading a file and moving it from the directory. Test is passing after the fix.

@elaboy elaboy added the bug label Jun 16, 2023
@codecov
Copy link

codecov bot commented Jun 16, 2023

Codecov Report

Merging #709 (748607d) into master (26e4eef) will decrease coverage by 0.01%.
Report is 4 commits behind head on master.
The diff coverage is 79.62%.

❗ Current head 748607d differs from pull request most recent head f90f3bb. Consider uploading reports for the commit f90f3bb to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #709      +/-   ##
==========================================
- Coverage   75.95%   75.94%   -0.01%     
==========================================
  Files         170      171       +1     
  Lines       28801    28845      +44     
==========================================
+ Hits        21876    21907      +31     
- Misses       6925     6938      +13     
Files Changed Coverage Δ
mzLib/MassSpectrometry/MsDataScan.cs 86.87% <ø> (ø)
mzLib/Readers/MsDataFileReader.cs 100.00% <ø> (ø)
mzLib/Readers/MzML/ReverseLineReader.cs 64.06% <ø> (ø)
mzLib/Test/FileReadingTests/TestFileConnection.cs 0.00% <0.00%> (ø)
mzLib/UsefulProteomicsDatabases/ProteinDbLoader.cs 97.41% <ø> (ø)
mzLib/MassSpectrometry/MsDataFile.cs 94.84% <66.66%> (-3.03%) ⬇️
mzLib/Readers/Thermo/ThermoRawFileReader.cs 87.53% <82.22%> (+0.70%) ⬆️
mzLib/MassSpectrometry/MzSpectra/MzSpectrum.cs 92.21% <100.00%> (+0.09%) ⬆️
mzLib/Readers/Bruker/BrukerFileReader.cs 85.18% <100.00%> (ø)
mzLib/Readers/Mgf/Mgf.cs 94.81% <100.00%> (+0.31%) ⬆️
... and 1 more

Copy link
Contributor

@Alexander-Sol Alexander-Sol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address Nic's comment and update. Then I'll build, test in MM, and approve

mzLib/MassSpectrometry/MzSpectra/MzSpectrum.cs Outdated Show resolved Hide resolved
mzLib/Readers/Thermo/ThermoRawFileReader.cs Show resolved Hide resolved
mzLib/Readers/Thermo/ThermoRawFileReader.cs Outdated Show resolved Hide resolved
@Alexander-Sol
Copy link
Contributor

Packed and tested in MetaMorpheus with vignette data. Results were the same for all tasks.

@trishorts trishorts merged commit 732c003 into smith-chem-wisc:master Sep 22, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants