Skip to content

Commit

Permalink
Fixed py2->py3 integer division snafu
Browse files Browse the repository at this point in the history
  • Loading branch information
dschride authored Dec 8, 2021
1 parent 5778c43 commit 6f23b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diploshic/makeFeatureVecsForChrArmFromVcfDiploid.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def readSampleToPopFile(sampleToPopFileName):
outVec = []
for statName in statNames:
outVec += normalizeFeatureVec(statVals[statName][-numSubWins:])
midSubWinEnd = subWinEnd - subWinSize * (numSubWins / 2)
midSubWinEnd = int(subWinEnd - subWinSize * (numSubWins // 2))
midSubWinStart = midSubWinEnd - subWinSize + 1
outFile.write(
"%s\t%d\t%d\t%d-%d\t"
Expand Down

0 comments on commit 6f23b84

Please sign in to comment.