Skip to content

Commit

Permalink
trying to fix test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius Booth committed Jan 29, 2019
1 parent 93254f8 commit 080f1ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prince/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
import numpy as np
import csv

# -*- coding: utf-8 -*-
# Trying to fix testing bug ^ https://stackoverflow.com/questions/21639275/python-syntaxerror-non-ascii-character-xe2-in-file

def get_X_and_Y(data,template):
X,Y = [],[]
for genome,templateName,tnum,cn,score in data:
Expand Down
4 changes: 4 additions & 0 deletions prince/tests/test_predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ def test_get_copy_number(self):
self.assertEqual(get_copy_number(-1, 0, 1), 1)
self.assertEqual(get_copy_number(100, 100, 100), 10100)
self.assertEqual(get_copy_number(987, 896, 876), 885228)


if __name__ == '__main__':
unittest.main()

0 comments on commit 080f1ae

Please sign in to comment.