Exemplo n.º 1
0
class TestStateFinderMultipleThreshold(unittest.TestCase):

    def setUp(self):
        self.SF = StateFinderMultipleThreshold(donor=1000)
        self.array = array([0, 0, 1, 1, 0])
        self.input_data = FretData.fromFields(*[self.array] * 4)

    def test_lifetimes_returns_dict_of_tuples(self):
        self.SF(self.input_data)
        lifetimes = self.SF.lifetimes()
        self.assertIsInstance(lifetimes, dict)
        for key in lifetimes:
            self.assertIsInstance(lifetimes[key], tuple)
Exemplo n.º 2
0
 def setUp(self):
     self.SF = StateFinderMultipleThreshold(donor=1000)
     self.array = array([0, 0, 1, 1, 0])
     self.input_data = FretData.fromFields(*[self.array] * 4)