@@ -9,7 +9,6 @@ def test_water():
9
9
mols = utils .load_mols ([xyz_in ], [0 ], [0 ], 'minao' )
10
10
dms = utils .mols_guess (mols , [xyz_in ], 'LB' , spin = [0 ])
11
11
X = bond .get_repr (mols , [xyz_in ], 'LB' , spin = [0 ], with_symbols = False , same_basis = False )
12
- #X = np.hstack(X) # merging alpha-beta components for spin unrestricted representation #TODO: should be included into function not in main
13
12
true_file = path + '/data/H2O_spahm_b.npy_alpha_beta.npy'
14
13
X_true = np .load (true_file )
15
14
assert (X_true .shape == X .shape )
@@ -21,7 +20,7 @@ def test_water_O_only():
21
20
xyz_in = path + '/data/H2O.xyz'
22
21
mols = utils .load_mols ([xyz_in ], [0 ], [0 ], 'minao' )
23
22
dms = utils .mols_guess (mols , [xyz_in ], 'LB' , spin = [0 ])
24
- X = bond .bond (mols , dms , spin = [ 0 ], only_z = ['O' ])
23
+ X = bond .bond (mols , dms , only_z = ['O' ])
25
24
X = np .squeeze (X ) #contains a single elements but has shape (1,Nfeat)
26
25
X = np .hstack (X ) # merging alpha-beta components for spin unrestricted representation #TODO: should be included into function not in main
27
26
true_file = path + '/data/H2O_spahm_b.npy_alpha_beta.npy'
@@ -36,7 +35,7 @@ def test_water_same_basis():
36
35
xyz_in = path + '/data/H2O.xyz'
37
36
mols = utils .load_mols ([xyz_in ], [0 ], [0 ], 'minao' )
38
37
dms = utils .mols_guess (mols , [xyz_in ], 'LB' , spin = [0 ])
39
- X = bond .bond (mols , dms , spin = [ 0 ], same_basis = True )
38
+ X = bond .bond (mols , dms , same_basis = True )
40
39
X = np .squeeze (X ) #contains a single elements but has shape (1,Nfeat)
41
40
X = np .hstack (X ) # merging alpha-beta components for spin unrestricted representation #TODO: should be included into function not in main
42
41
true_file = path + '/data/H2O_spahm_b_CCbas.npy_alpha_beta.npy'
@@ -50,7 +49,7 @@ def test_ecp():
50
49
xyz_in = path + '/data/I2.xyz'
51
50
mols = utils .load_mols ([xyz_in ], [0 ], [None ], 'minao' , ecp = 'def2-svp' )
52
51
dms = utils .mols_guess (mols , [xyz_in ], 'LB' , spin = [None ])
53
- X = bond .bond (mols , dms , spin = [ None ], same_basis = True )
52
+ X = bond .bond (mols , dms , same_basis = True )
54
53
X = np .squeeze (X ) #contains a single elements but has shape (1,Nfeat)
55
54
X = np .hstack (X ) # merging alpha-beta components for spin unrestricted representation #TODO: should be included into function not in main
56
55
true_file = path + '/data/I2_spahm-b_minao-def2-svp_alpha-beta.npy'
0 commit comments