diff options
author | David Luevano <55825613+luevano@users.noreply.github.com> | 2020-02-01 12:53:52 -0700 |
---|---|---|
committer | David Luevano <55825613+luevano@users.noreply.github.com> | 2020-02-01 12:53:52 -0700 |
commit | 7b354202fd2376866204ae4d80387f681e566e73 (patch) | |
tree | 6243170d08e68b1548c57ebc80fb8c6c58eaee8f | |
parent | c245130b09450c3b37ec150a0e58d0d42ac2d754 (diff) |
Add bag of stuff
-rw-r--r-- | ml_exp/bob.py | 2 | ||||
-rw-r--r-- | ml_exp/bostuff.py | 22 |
2 files changed, 23 insertions, 1 deletions
diff --git a/ml_exp/bob.py b/ml_exp/bob.py index 0d31face0..5f45019a0 100644 --- a/ml_exp/bob.py +++ b/ml_exp/bob.py @@ -51,7 +51,7 @@ def bob(c_matrix, max_len: maximum amount of bonds in molecule. """ n = len(atoms) - bond_n = (n*n-n)/2+n + bond_n = (n * n - n) / 2 + n n_r = range(n) if max_bond_len < bond_n: diff --git a/ml_exp/bostuff.py b/ml_exp/bostuff.py new file mode 100644 index 000000000..48cd14913 --- /dev/null +++ b/ml_exp/bostuff.py @@ -0,0 +1,22 @@ +"""MIT License + +Copyright (c) 2019 David Luevano Alvarado + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +""" |