def test_ordinate_init(self): r = Relationship(utils.straight_line, TEST_X, TEST_Y) assert_equal(isinstance(r.ordinate, Axis), True) assert_equal(r.ordinate.values, TEST_Y)
def test_function_init(self): r = Relationship(utils.straight_line, TEST_X, TEST_Y) assert_equal(r.function, utils.straight_line)
def test_abscissa_init(self): r = Relationship(utils.straight_line, TEST_X, TEST_Y) assert_equal(isinstance(r.abscissa, np.ndarray), True) assert_equal(r.abscissa, TEST_X)
def test_nested_sampling_not_done(self): r = Relationship(utils.straight_line, TEST_X, TEST_Y, bounds=((0, 10), (-1, 1))) assert_equal(r.nested_sampling_done, False)
def test_len_parameters(self): r = Relationship(utils.straight_line, TEST_X, TEST_Y) assert_equal(r.len_parameters, 2)
def test_y(self): r = Relationship(utils.straight_line, TEST_X, TEST_Y) assert_equal(isinstance(r.y, Axis), True) assert_equal(r.y.values, TEST_Y)
def test_x(self): r = Relationship(utils.straight_line, TEST_X, TEST_Y) assert_equal(isinstance(r.x, np.ndarray), True) assert_equal(r.x, TEST_X)
def test_nested_sampling_results_init(self): r = Relationship(utils.straight_line, TEST_X, TEST_Y) assert_equal(r.nested_sampling_results, None)
def test_mcmc_results_init(self): r = Relationship(utils.straight_line, TEST_X, TEST_Y) assert_equal(r.mcmc_results, None)
def test_ln_evidence_init(self): r = Relationship(utils.straight_line, TEST_X, TEST_Y) assert_equal(r.ln_evidence, None)