Skip to content

Commit 4207c0f

Browse files
Dom LaetschDom Laetsch
authored andcommitted
Fix bug in BtCore
1 parent 4fb4c35 commit 4207c0f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/BtCore.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,9 @@ def parseCovs(self, covLibObjs):
247247
cov_dict = BtIO.readCov(covLib.f, set(self.dict_of_blobs))
248248
if not len(cov_dict) == self.seqs:
249249
print BtLog.warn_d['4'] % covLib.f
250-
covLib.cov_sum += cov
251-
self.dict_of_blobs[name].addCov(covLib.name, cov)
250+
for name, cov in cov_dict.items():
251+
covLib.cov_sum += cov
252+
self.dict_of_blobs[name].addCov(covLib.name, cov)
252253
else:
253254
pass
254255
covLib.mean_cov = covLib.cov_sum/self.seqs

0 commit comments

Comments
 (0)