Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
irp
Fresnel
Commits
b514ec43
Commit
b514ec43
authored
Feb 18, 2021
by
Leon Merten Lohse
Browse files
cleanup
parent
86f7c517
Pipeline
#174563
passed with stages
in 1 minute and 42 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.flake8
View file @
b514ec43
[flake8]
max-line-length = 100
ignore = E501, W605
ignore = E501, W605
, W503
select = C,E,F,W,B,B9
fresnel/hankel.py
View file @
b514ec43
...
...
@@ -112,7 +112,7 @@ class ResampleTransform:
Parameters
----------
N
in
: int
N : int
number of samples
samplesout : array
new sampling grid
...
...
@@ -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
"""
def
__init__
(
self
,
Nin
,
samplesout
,
xmax
=
1
,
order
=
0
,
eps
=
1e-10
):
Nout
=
len
(
samplesout
)
def
__init__
(
self
,
N
,
samplesout
,
xmax
=
1
,
order
=
0
,
eps
=
1e-10
):
jn
=
np
.
array
(
scipy
.
special
.
jn_zeros
(
order
,
N
in
+
1
))
jN
=
jn
[
N
in
]
jn
=
np
.
array
(
scipy
.
special
.
jn_zeros
(
order
,
N
+
1
))
jN
=
jn
[
N
]
K
=
jN
/
xmax
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment