diff options
author | David Luevano Alvarado <55825613+luevano@users.noreply.github.com> | 2020-02-22 17:12:32 -0700 |
---|---|---|
committer | David Luevano Alvarado <55825613+luevano@users.noreply.github.com> | 2020-02-22 17:12:32 -0700 |
commit | 8d0a22b9fdef41ece399468423cb533768d0e631 (patch) | |
tree | fabb56209abef7561e185f89846d58a8183ac44c /ml_exp/representations.py | |
parent | fb4307513ddda06742bbe4d542c2716c0d67c06d (diff) |
Add tests
Diffstat (limited to 'ml_exp/representations.py')
-rw-r--r-- | ml_exp/representations.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ml_exp/representations.py b/ml_exp/representations.py index 354611190..ae870f3b0 100644 --- a/ml_exp/representations.py +++ b/ml_exp/representations.py @@ -273,9 +273,9 @@ def adjacency_matrix(fnm, size = n if forces: - am = np.empty((size, size), dtype=float) + am = np.zeros((size, size), dtype=float) else: - am = np.empty((size, size), dtype=int) + am = np.zeros((size, size), dtype=int) for i, bond_i in enumerate(bonds): for j, bond_j in enumerate(bonds): |