Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
finesse
pykat
Commits
b9899826
Commit
b9899826
authored
Nov 21, 2018
by
Daniel Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing lens ABCD when setting diopters to zero
parent
18da7346
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
pykat/components.py
pykat/components.py
+4
-1
No files found.
pykat/components.py
View file @
b9899826
...
@@ -1440,6 +1440,9 @@ class lens(Component):
...
@@ -1440,6 +1440,9 @@ class lens(Component):
if
self
.
f
.
value
is
not
None
:
if
self
.
f
.
value
is
not
None
:
return
ABCD
.
lens
(
self
.
f
.
value
)
return
ABCD
.
lens
(
self
.
f
.
value
)
else
:
if
self
.
p
.
value
==
0
:
return
ABCD
.
lens
(
np
.
inf
)
else
:
else
:
return
ABCD
.
lens
(
1
/
self
.
p
.
value
)
return
ABCD
.
lens
(
1
/
self
.
p
.
value
)
...
...
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