Commit 252f5db0 authored by Martin Larralde's avatar Martin Larralde
Browse files

Return double precision numbers from `Node._intergenic_mod` functions

parent d6654d1c
......@@ -139,19 +139,19 @@ cdef class Node:
cdef _node* node
@staticmethod
cdef float _intergenic_mod(
cdef double _intergenic_mod(
const _node* n1,
const _node* n2,
const double start_weight
) nogil
@staticmethod
cdef float _intergenic_mod_same(
cdef double _intergenic_mod_same(
const _node* n1,
const _node* n2,
const double start_weight
) nogil
@staticmethod
cdef float _intergenic_mod_diff(
cdef double _intergenic_mod_diff(
const _node* n1,
const _node* n2,
const double start_weight
......
......@@ -1278,7 +1278,7 @@ cdef class Node:
# --- C interface --------------------------------------------------------
@staticmethod
cdef float _intergenic_mod(
cdef double _intergenic_mod(
const _node* n1,
const _node* n2,
const double start_weight
......@@ -1291,7 +1291,7 @@ cdef class Node:
return Node._intergenic_mod_diff(n1, n2, start_weight)
@staticmethod
cdef float _intergenic_mod_same(
cdef double _intergenic_mod_same(
const _node* n1,
const _node* n2,
const double start_weight
......@@ -1318,7 +1318,7 @@ cdef class Node:
return rval
@staticmethod
cdef float _intergenic_mod_diff(
cdef double _intergenic_mod_diff(
const _node* n1,
const _node* n2,
const double start_weight
......
......@@ -19,11 +19,11 @@ class TestConnectionScorer(unittest.TestCase):
self.assertEqual(n1.edge, n2.edge)
self.assertEqual(n1.gc_bias, n2.gc_bias)
self.assertEqual(n1.gc_cont, n2.gc_cont)
self.assertAlmostEqual(n1.score, n2.score, places=4)
self.assertAlmostEqual(n1.cscore, n2.cscore, places=4)
self.assertAlmostEqual(n1.rscore, n2.rscore, places=4)
self.assertAlmostEqual(n1.sscore, n2.sscore, places=4)
self.assertAlmostEqual(n1.tscore, n2.tscore, places=4)
self.assertAlmostEqual(n1.score, n2.score)
self.assertAlmostEqual(n1.cscore, n2.cscore)
self.assertAlmostEqual(n1.rscore, n2.rscore)
self.assertAlmostEqual(n1.sscore, n2.sscore)
self.assertAlmostEqual(n1.tscore, n2.tscore)
@classmethod
def setUpClass(cls):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment