aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2021-03-15 15:28:22 +0530
committerArun Isaac2021-03-15 15:30:35 +0530
commit2b89e25cc18cd82df1a3720e7e4739b007f14879 (patch)
treed165444768baa0864bd91b27f04268d154a3621d
parentc50fc913662a88995f5e338764dbf4efcfa71f45 (diff)
downloadnsmc-2b89e25cc18cd82df1a3720e7e4739b007f14879.tar.gz
nsmc-2b89e25cc18cd82df1a3720e7e4739b007f14879.tar.lz
nsmc-2b89e25cc18cd82df1a3720e7e4739b007f14879.zip
Remove unused imports.
* contrib/cone-vector.py: Don't import zeros from numpy and gamma from scipy.special.
-rw-r--r--contrib/cone-vector.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/cone-vector.py b/contrib/cone-vector.py
index 676750f..c099879 100644
--- a/contrib/cone-vector.py
+++ b/contrib/cone-vector.py
@@ -16,10 +16,10 @@
# along with this program. If not, see
# <https://www.gnu.org/licenses/>.
-from numpy import arcsin, cos, dot, empty, ones, sin, sqrt, pi, where, zeros
+from numpy import arcsin, cos, dot, empty, ones, sin, sqrt, pi, where
from numpy.random import randn, random
from numpy.linalg import norm
-from scipy.special import betainc, betaincinv, gamma
+from scipy.special import betainc, betaincinv
def random_vector_on_sphere(dim):
"""Return a random vector uniformly distributed on the unit sphere."""