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