From 0e68a038d22e75e7de796c95677250ef5fbb4120 Mon Sep 17 00:00:00 2001
From: MaNyh <nyhuis@tfd.uni-hannover.de>
Date: Fri, 10 Dec 2021 13:46:27 +0100
Subject: [PATCH] cleanup

---
 ntrfc/utils/math/vectorcalc.py | 9 ---------
 tests/test_ntrfc_math.py       | 4 ----
 2 files changed, 13 deletions(-)

diff --git a/ntrfc/utils/math/vectorcalc.py b/ntrfc/utils/math/vectorcalc.py
index 36e64f40..aa656013 100644
--- a/ntrfc/utils/math/vectorcalc.py
+++ b/ntrfc/utils/math/vectorcalc.py
@@ -188,15 +188,6 @@ def ellipsoidVol(sig):
     return 4 / 3 * np.pi * sig[0] * sig[1] * sig[2]
 
 
-def minDists(vecs):
-    dist = scipy.spatial.distance.cdist(vecs, vecs)
-
-    dist[dist == 0] = np.inf
-    mDist = []
-    for i in dist:
-        mDist.append(np.min(i))
-    return mDist
-
 
 def vecProjection(direction, vector):
     unitDir = vecDir(direction)
diff --git a/tests/test_ntrfc_math.py b/tests/test_ntrfc_math.py
index 5cf73a7d..23b1043e 100644
--- a/tests/test_ntrfc_math.py
+++ b/tests/test_ntrfc_math.py
@@ -142,10 +142,6 @@ def test_randomOrthMat():
     dot_o = np.dot(o,o.T)
     assert all(np.isclose(dot_o,np.identity(3)).flatten())
 
-def test_minDists():
-    from ntrfc.utils.math.vectorcalc import minDists
-    a = minDists
-
 
 def test_vecProjection():
     import numpy as np
-- 
GitLab