hopefully this helps
This commit is contained in:
parent
d6402839ab
commit
dd0da6d8d8
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ class LocatorSpace:
|
|||
)
|
||||
if not acceptable_points:
|
||||
return None, None
|
||||
scores = np.sum((self.levels[np.array(acceptable_points).reshape((-1, 1)),
|
||||
scores = np.sum((self.levels[np.array(acceptable_points, dtype=np.uint32).reshape((-1, 1)),
|
||||
stations]-values)**2, axis=1) / len(stations)
|
||||
|
||||
best_point = acceptable_points[np.argmin(scores).ravel()[0]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue