Commit e6952888 authored by Manuel Schrauth's avatar Manuel Schrauth
Browse files

replace np by math function

parent cbe09cbd
Pipeline #15301 passed with stages
in 8 minutes and 47 seconds
import numpy as np
import math
from .distance import weierstrass_distance, lorentzian_distance
# wrapper to provide a nicer interface
......@@ -161,7 +162,7 @@ def find_nn_optimized(tiling, nn_dist, eps=1e-5):
# add something to nn_dist to avoid rounding problems
# does not need to be particularly small
searchdist = nn_dist + eps
searchdist = np.cosh(searchdist)
searchdist = math.cosh(searchdist)
# prepare list
retlist = []
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment