From 080f1ae16a280d189ccc35524a8bf53b71605ffd Mon Sep 17 00:00:00 2001 From: Julius Booth Date: Mon, 28 Jan 2019 18:33:14 -0800 Subject: [PATCH] trying to fix test bug --- prince/predict.py | 3 +++ prince/tests/test_predict.py | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/prince/predict.py b/prince/predict.py index 9358a44..3aef909 100644 --- a/prince/predict.py +++ b/prince/predict.py @@ -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: diff --git a/prince/tests/test_predict.py b/prince/tests/test_predict.py index e6734ef..a1680c3 100644 --- a/prince/tests/test_predict.py +++ b/prince/tests/test_predict.py @@ -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() \ No newline at end of file