Skip to content
Snippets Groups Projects
Commit 7a4dee53 authored by Jeremy M Fee's avatar Jeremy M Fee
Browse files

Convert numpy linspace parameter to int

parent 326b3f74
No related branches found
No related tags found
No related merge requests found
...@@ -421,7 +421,9 @@ class SqDistAlgorithm(Algorithm): ...@@ -421,7 +421,9 @@ class SqDistAlgorithm(Algorithm):
sig = np.sqrt(-2 * np.log(fom) / omg**2) + np.finfo(float).eps # sig>0 sig = np.sqrt(-2 * np.log(fom) / omg**2) + np.finfo(float).eps # sig>0
ts = np.linspace(np.max((-m, -3 * np.round(sig))), ts = np.linspace(np.max((-m, -3 * np.round(sig))),
np.min((m, 3 * np.round(sig))), np.min((m, 3 * np.round(sig))),
np.min((2 * m, 6 * np.round(sig))) + 1) np.int(np.round(
np.min((2 * m, 6 * np.round(sig))) + 1
)))
nts = ts.size nts = ts.size
weights = np.exp(-0.5 * (ts / sig)**2) weights = np.exp(-0.5 * (ts / sig)**2)
weights = weights / np.sum(weights) weights = weights / np.sum(weights)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment