summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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