21
21
INIT_CONDITIONS = pd .read_hdf (os .path .join (TEST_DATA_DIR , 'initial_conditions_for_testing.hdf5' ), key = 'initC' )
22
22
23
23
init_conds_columns = initialbinarytable .INITIAL_CONDITIONS_COLUMNS_ALL
24
-
25
24
INIT_CONDITIONS_NO_BSE_COLUMNS = INIT_CONDITIONS [init_conds_columns ]
26
25
BPP_DF = pd .read_hdf (os .path .join (TEST_DATA_DIR , 'unit_tests_results.hdf5' ), key = 'bpp' )
27
26
BCM_DF = pd .read_hdf (os .path .join (TEST_DATA_DIR , 'unit_tests_results.hdf5' ), key = 'bcm' )
34
33
2.0 / 21.0 ,2.0 / 21.0 ,2.0 / 21.0 ,2.0 / 21.0 ,2.0 / 21.0 ,2.0 / 21.0 ]
35
34
BSEDict ['grflag' ] = 1
36
35
BSEDict ['don_lim' ] = - 1
37
- BSEDict ['acc_lim' ] = - 1
36
+ BSEDict ['acc_lim' ] = [ - 1 , - 1 ]
38
37
BSEDict ['wd_mass_lim' ] = 0
39
38
SSEDict = {'stellar_engine' : 'sse' }
40
39
@@ -46,14 +45,14 @@ def test_single_evolve_with_table(self):
46
45
47
46
# Check that the sample_primary function samples mass correctly
48
47
EvolvedBinaryBPP , EvolvedBinaryBCM , initCond , kick_info = Evolve .evolve (
49
- initialbinarytable = INIT_CONDITIONS , randomseed = 523574 , SSEDict = SSEDict )
48
+ initialbinarytable = INIT_CONDITIONS , randomseed = 523574 )
50
49
51
50
pd .testing .assert_frame_equal (EvolvedBinaryBPP , BPP_DF , check_dtype = False , check_exact = False )
52
51
pd .testing .assert_frame_equal (EvolvedBinaryBCM , BCM_DF , check_dtype = False , check_exact = False )
53
52
54
53
def test_single_evolve_with_dict (self ):
55
54
EvolvedBinaryBPP , EvolvedBinaryBCM , initCond , kick_info = Evolve .evolve (
56
- initialbinarytable = INIT_CONDITIONS_NO_BSE_COLUMNS , BSEDict = BSEDict , randomseed = 523574 )
55
+ initialbinarytable = INIT_CONDITIONS_NO_BSE_COLUMNS , BSEDict = BSEDict , SSEDict = SSEDict , randomseed = 523574 )
57
56
58
57
pd .testing .assert_frame_equal (EvolvedBinaryBPP , BPP_DF , check_dtype = False , check_exact = False )
59
58
pd .testing .assert_frame_equal (EvolvedBinaryBCM , BCM_DF , check_dtype = False , check_exact = False )
@@ -67,7 +66,7 @@ def test_single_evolve_with_inifile(self):
67
66
68
67
def test_single_evolve_with_dict_and_table (self ):
69
68
EvolvedBinaryBPP , EvolvedBinaryBCM , initCond , kick_info = Evolve .evolve (
70
- initialbinarytable = INIT_CONDITIONS , BSEDict = BSEDict , randomseed = 523574 )
69
+ initialbinarytable = INIT_CONDITIONS , BSEDict = BSEDict , SSEDict = SSEDict , randomseed = 523574 )
71
70
72
71
pd .testing .assert_frame_equal (EvolvedBinaryBPP , BPP_DF , check_dtype = False , check_exact = False )
73
72
pd .testing .assert_frame_equal (EvolvedBinaryBCM , BCM_DF , check_dtype = False , check_exact = False )
@@ -82,7 +81,7 @@ def test_multi_evolve_with_table(self):
82
81
83
82
def test_multi_evolve_with_dict (self ):
84
83
EvolvedBinaryBPP , EvolvedBinaryBCM , initCond , kick_info = Evolve .evolve (
85
- initialbinarytable = INIT_CONDITIONS_NO_BSE_COLUMNS , BSEDict = BSEDict , randomseed = 523574 , n_per_block = 100 )
84
+ initialbinarytable = INIT_CONDITIONS_NO_BSE_COLUMNS , BSEDict = BSEDict , SSEDict = SSEDict , randomseed = 523574 , n_per_block = 100 )
86
85
87
86
pd .testing .assert_frame_equal (EvolvedBinaryBPP , BPP_DF , check_dtype = False , check_exact = False )
88
87
pd .testing .assert_frame_equal (EvolvedBinaryBCM , BCM_DF , check_dtype = False , check_exact = False )
@@ -96,7 +95,7 @@ def test_multi_evolve_with_inifile(self):
96
95
97
96
def test_multi_evolve_with_dict_and_table (self ):
98
97
EvolvedBinaryBPP , EvolvedBinaryBCM , initCond , kick_info = Evolve .evolve (
99
- initialbinarytable = INIT_CONDITIONS , BSEDict = BSEDict , randomseed = 523574 , n_per_block = 100 )
98
+ initialbinarytable = INIT_CONDITIONS , BSEDict = BSEDict , SSEDict = SSEDict , randomseed = 523574 , n_per_block = 100 )
100
99
101
100
pd .testing .assert_frame_equal (EvolvedBinaryBPP , BPP_DF , check_dtype = False , check_exact = False )
102
101
pd .testing .assert_frame_equal (EvolvedBinaryBCM , BCM_DF , check_dtype = False , check_exact = False )
0 commit comments