Commit b514ec43 authored by Leon Merten Lohse's avatar Leon Merten Lohse
Browse files

cleanup

parent 86f7c517
Pipeline #174563 passed with stages
in 1 minute and 42 seconds
[flake8] [flake8]
max-line-length = 100 max-line-length = 100
ignore = E501, W605 ignore = E501, W605, W503
select = C,E,F,W,B,B9 select = C,E,F,W,B,B9
...@@ -112,7 +112,7 @@ class ResampleTransform: ...@@ -112,7 +112,7 @@ class ResampleTransform:
Parameters Parameters
---------- ----------
Nin : int N : int
number of samples number of samples
samplesout : array samplesout : array
new sampling grid new sampling grid
...@@ -137,11 +137,10 @@ class ResampleTransform: ...@@ -137,11 +137,10 @@ class ResampleTransform:
.. [2] A. W. Norfolk and E. J. Grace, “Reconstruction of optical fields with the Quasi-discrete Hankel transform,” Optics Express, vol. 18, no. 10, p. 10551, May 2010. https://doi.org/10.1364%2Foe.18.010551 .. [2] A. W. Norfolk and E. J. Grace, “Reconstruction of optical fields with the Quasi-discrete Hankel transform,” Optics Express, vol. 18, no. 10, p. 10551, May 2010. https://doi.org/10.1364%2Foe.18.010551
""" """
def __init__(self, Nin, samplesout, xmax=1, order=0, eps=1e-10): def __init__(self, N, samplesout, xmax=1, order=0, eps=1e-10):
Nout = len(samplesout)
jn = np.array(scipy.special.jn_zeros(order, Nin + 1)) jn = np.array(scipy.special.jn_zeros(order, N + 1))
jN = jn[Nin] jN = jn[N]
K = jN / xmax K = jN / xmax
......
Markdown is supported
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