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
tomotools
Nabu
Commits
fa77e048
Commit
fa77e048
authored
Jun 15, 2020
by
Nicola Vigano
Browse files
Alignment: small variable name refactoring
Signed-off-by:
Nicola VIGANÒ
<
nicola.vigano@esrf.fr
>
parent
f8e57892
Changes
1
Hide whitespace changes
Inline
Side-by-side
nabu/preproc/alignment.py
View file @
fa77e048
...
...
@@ -35,11 +35,11 @@ def _get_lowpass_filter(img_shape, cutoff_pix, cutoff_trans_pix):
k_cut_width
=
0.5
/
cutoff_trans_pix
r
=
np
.
sqrt
(
np
.
sum
(
np
.
array
(
coords
)
**
2
,
axis
=
0
))
myargs
=
(
r
-
k_cut
)
/
k_cut_width
k_pos_rescaled
=
(
r
-
k_cut
)
/
k_cut_width
if
__have_scipy__
:
res
=
spspe
.
erfc
(
myargs
)
/
2
res
=
spspe
.
erfc
(
k_pos_rescaled
)
/
2
else
:
res
=
np
.
array
(
list
(
map
(
math
.
erfc
,
myargs
)))
/
2
res
=
np
.
array
(
list
(
map
(
math
.
erfc
,
k_pos_rescaled
)))
/
2
return
res
...
...
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