Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
finesse
pykat
Commits
ee8e35fe
Commit
ee8e35fe
authored
May 20, 2015
by
Daniel Brown
Browse files
fixing BH integer conversion
parent
ebfcd528
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/optics/knm.py
View file @
ee8e35fe
...
...
@@ -398,14 +398,14 @@ def __Ss(u, _u, F, _F, d=0):
def
__S
(
m
,
_m
,
X
,
_X
,
F
,
_F
,
d
=
0
):
if
m
%
2
==
1
:
lim1
=
(
m
-
1
)
/
2
lim1
=
int
(
(
m
-
1
)
/
2
)
else
:
lim1
=
m
/
2
lim1
=
int
(
m
/
2
)
if
_m
%
2
==
1
:
lim2
=
(
_m
-
1
)
/
2
lim2
=
int
(
(
_m
-
1
)
/
2
)
else
:
lim2
=
_m
/
2
lim2
=
int
(
_m
/
2
)
r
=
0
...
...
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