summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-02-21 17:25:25 -0700
committerDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-02-21 17:25:25 -0700
commit2dd24b5f7dfa5c43acd8e4281dab22f178a5019e (patch)
tree94ce0e5c7ce3d2332b1a5f4a884f49cbc9159d60
parent4ce7823359a144973c667f488e5fa39e5d3f8acc (diff)
Remove unused function
-rw-r--r--ml_exp/c_matrix.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/ml_exp/c_matrix.py b/ml_exp/c_matrix.py
index 00034a660..ac942d473 100644
--- a/ml_exp/c_matrix.py
+++ b/ml_exp/c_matrix.py
@@ -20,11 +20,9 @@ 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.
"""
-import time
import math
import numpy as np
from numpy.linalg import eig
-from ml_exp.misc import printc
def c_matrix(mol_data,
@@ -146,34 +144,3 @@ def c_matrix(mol_data,
return np.sort(eig(cm)[0])[::-1]
else:
return cm
-
-
-def c_matrix_multiple(mol_data,
- nc_data,
- pipe=None,
- max_len=25,
- as_eig=True,
- bohr_radius_units=False):
- """
- Calculates the Coulomb Matrix of multiple molecules.
- mol_data: molecule data, matrix of atom coordinates.
- nc_data: nuclear charge data, array of atom data.
- pipe: for multiprocessing purposes. Sends the data calculated
- through a pipe.
- max_len: maximum amount of atoms in molecule.
- as_eig: if data should be returned as matrix or array of eigenvalues.
- bohr_radius_units: if units should be in bohr's radius units.
- """
- printc('Coulomb Matrices calculation started.', 'CYAN')
- tic = time.perf_counter()
-
- cm_data = np.array([c_matrix(mol, nc, max_len, as_eig, bohr_radius_units)
- for mol, nc in zip(mol_data, nc_data)])
-
- toc = time.perf_counter()
- printc('\tCM calculation took {:.4f} seconds.'.format(toc - tic), 'GREEN')
-
- if pipe:
- pipe.send(cm_data)
-
- return cm_data