[edit] just style related changes
This commit is contained in:
1 parent
3ee221b8eb
commit
e7b454bae8
1 file changed
+1
@@ -15,6 +15,7 @@ def create_axis(x0, incr, npts):
|
||||
ax[i] = x0 + incr * i
|
||||
return ax
|
||||
|
||||
|
||||
def find_nearest_index(array, value):
|
||||
return (np.abs(array-value)).argmin()
|
||||
|
||||
|
||||
Reference in new issue
Block a user