Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nam
ProxPython
Commits
3ce6d057
Commit
3ce6d057
authored
Nov 06, 2017
by
alexander.dornheim
Browse files
Fixed calling not defined pi in phase
parent
9e79f190
Changes
1
Hide whitespace changes
Inline
Side-by-side
proxtoolbox/Problems/Phase/phase.py
View file @
3ce6d057
...
...
@@ -33,7 +33,7 @@ class Phase(Problem):
#moved here from JWST_in since if statements not possible in dictonary
if
'distance'
in
self
.
config
:
if
self
.
config
[
'distance'
]
==
'near field'
:
self
.
config
[
'fresnel_nr'
]
=
1
*
2
*
pi
*
self
.
config
[
'Nx'
]
self
.
config
[
'fresnel_nr'
]
=
1
*
2
*
np
.
pi
*
self
.
config
[
'Nx'
]
self
.
config
[
'use_farfield_formula'
]
=
0
else
:
self
.
config
[
'fresnel_nr'
]
=
0
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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