Just fix a bug: I forgot to close the file reader and writer at the end of the program, so it causes some outputs missing at sometimes. Here I put the writer and reader inside the try closure, make sure they are automatically closed at the end.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
How Has This Been Tested?
Run a real big dataset.
Are WDL Updates Required?
not required at this pull request
Checklist:
[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[X] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
Description
Just fix a bug: I forgot to close the file reader and writer at the end of the program, so it causes some outputs missing at sometimes. Here I put the writer and reader inside the try closure, make sure they are automatically closed at the end.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Run a real big dataset.
Are WDL Updates Required?
not required at this pull request
Checklist: