diff options
author | David Luevano <55825613+luevano@users.noreply.github.com> | 2020-02-19 03:33:22 -0700 |
---|---|---|
committer | David Luevano <55825613+luevano@users.noreply.github.com> | 2020-02-19 03:33:22 -0700 |
commit | 7920c4b8471741cb9b5a9aa06da436c1b678f62a (patch) | |
tree | ac0088e450bc252ab4df1b07510b10d060230393 | |
parent | d97fd3515ef3a164fd0a2d1de43e8fd8b8e75f10 (diff) |
Fix bugs
-rw-r--r-- | ml_exp/__main__.py | 6 | ||||
-rw-r--r-- | ml_exp/bostuff.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ml_exp/__main__.py b/ml_exp/__main__.py index a1f2f0030..aaeb18714 100644 --- a/ml_exp/__main__.py +++ b/ml_exp/__main__.py @@ -58,14 +58,14 @@ if __name__ == '__main__': xyz, nc, pbe0, delta, atoms = read_qm7_data(return_atoms=True) for i in range(1): cm = c_matrix(xyz[i], nc[i], as_eig=False) - bob = bob(cm, atoms[i]) + bob_i = bob(cm, atoms[i]) print(f'{i} coulomb matrix\n{cm}') print(f'{i} bag of bonds\n{bob}') fnm, bonds = fneig_matrix(atoms[i], xyz[i], nc[i], False) am = adj_matrix(fnm, bonds, None) - bok_cx = bok_cx(am, atoms[i]) + bok_cx_i = bok_cx(am, atoms[i]) print(f'{i} adjacency matrix\n{am}') - print(f'{i} bag of k_cx\n{bok_cx}') + print(f'{i} bag of k_cx\n{bok_cx_i}') diff --git a/ml_exp/bostuff.py b/ml_exp/bostuff.py index 3e3f65e66..1741e26cd 100644 --- a/ml_exp/bostuff.py +++ b/ml_exp/bostuff.py @@ -45,7 +45,7 @@ def bok_cx(adj_matrix, max_n = n if max_bond_len < bond_n: - print(''.join(['Error. Molecule bond lenght (bond_n) is ', + print(''.join(['Error. Molecule bond length (bond_n) is ', 'greater than max_bond_len. Using bond_n.'])) max_bond_len = bond_n |