Skip to content

Commit

Permalink
Merge pull request #4 from selfdecode/fix/other-get_bpm_records
Browse files Browse the repository at this point in the history
fix: other get_bpm_records
  • Loading branch information
andrew-terpolovsky authored Jul 3, 2024
2 parents e45c275 + 601e1d8 commit 2c5d11f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion BPMReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ def get_bpm_records(self):
"""
bpm = self._bpm
for idx in range(len(bpm.addresses)):
yield BPMRecord(bpm.names[idx], bpm.addresses[idx], None, bpm.chroms[idx], bpm.map_infos[idx], bpm.snps[idx], bpm.ref_strands[idx], bpm.assay_types[idx], None, None, None, None, idx, self._logger)
try:
yield BPMRecord(bpm.names[idx], bpm.addresses[idx], None, bpm.chroms[idx], bpm.map_infos[idx], bpm.snps[idx], bpm.ref_strands[idx], bpm.assay_types[idx], None, None, None, None, idx, self._logger)
except Exception as error:
self._logger.warn("Failed to process entry for record %s: %s", bpm.names[idx], str(error))

class ManifestFilter(object):
"""
Expand Down

0 comments on commit 2c5d11f

Please sign in to comment.