def get_n_tail(self): if len(self.tail_checks_temperatures) > 0: n_tail = lib_tail.get_n_tail(self.tmax, self.tail_checks_temperatures) else: n_tail = 0 self.pars['n_tail'] = n_tail return n_tail
def test_n_tail(self): ref_n_tail = 4 # ref_tail_section. specifying this is not neacessary if we always start at the first tail check. need to check that this is so n_tail = lib_tail.get_n_tail(self.tmax, self.tail_temps) self.assertEqual(ref_n_tail, n_tail)