Skip to content

Commit

Permalink
close h5 files
Browse files Browse the repository at this point in the history
  • Loading branch information
afrubin committed Dec 16, 2020
1 parent 37f57db commit ca22574
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mavedbconvert/enrich2.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,10 @@ def __init__(
def convert(self):
logger.info("Processing file {}".format(self.src))
if self.input_is_h5:
return self.parse_input(self.load_input_file())
input_file = self.load_input_file()
result = self.parse_input(input_file)
input_file.close()
return result
else:
return self.parse_tsv_input(self.load_input_file())

Expand Down

0 comments on commit ca22574

Please sign in to comment.