Beispiel #1
0
 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)
Beispiel #2
0
 def test_function_init(self):
     r = Relationship(utils.straight_line, TEST_X, TEST_Y)
     assert_equal(r.function, utils.straight_line)
Beispiel #3
0
 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)
Beispiel #4
0
 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)
Beispiel #5
0
 def test_len_parameters(self):
     r = Relationship(utils.straight_line, TEST_X, TEST_Y)
     assert_equal(r.len_parameters, 2)
Beispiel #6
0
 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)
Beispiel #7
0
 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)
Beispiel #8
0
 def test_nested_sampling_results_init(self):
     r = Relationship(utils.straight_line, TEST_X, TEST_Y)
     assert_equal(r.nested_sampling_results, None)
Beispiel #9
0
 def test_mcmc_results_init(self):
     r = Relationship(utils.straight_line, TEST_X, TEST_Y)
     assert_equal(r.mcmc_results, None)
Beispiel #10
0
 def test_ln_evidence_init(self):
     r = Relationship(utils.straight_line, TEST_X, TEST_Y)
     assert_equal(r.ln_evidence, None)