Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ixstools
xrstools
Commits
adc1f588
Commit
adc1f588
authored
Dec 04, 2020
by
myron
Browse files
ants
parent
a4e802ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
nonregressions/volumes/esrf_scans/fourmis/interp/batch_extraction_interp.py
View file @
adc1f588
...
...
@@ -46,7 +46,6 @@ def main():
## such radius from the maximum
isolate_spot_by
=
7
#### For the fit of the response function based on reference scans
response_fit_options
=
dict
(
[
[
"niter_optical"
,
100
],
...
...
@@ -67,7 +66,7 @@ def main():
steps_to_do
=
{
"do_step_make_roi"
:
False
,
"do_step_sample_extraction"
:
Fals
e
,
"do_step_sample_extraction"
:
Tru
e
,
"do_step_interpolation"
:
False
,
"do_step_extract_reference_scan"
:
False
,
...
...
@@ -108,10 +107,8 @@ def main():
elastic
.
get_compensation_factor
(
elastic_scan_for_peaks_shifts
,
method
=
'sum'
)
el_dict
=
elastic
.
cenom_dict
Enominal
=
np
.
median
(
list
(
el_dict
.
values
()
)
)
peaks_shift
=
np
.
array
([
el_dict
[
"ROI%02d"
%
i
]
if
(
"ROI%02d"
%
i
)
in
el_dict
else
nan
for
i
in
range
(
72
)
]
)
for
p
in
peaks_shift
:
print
(
p
)
raise
peaks_shifts
=
np
.
array
([
el_dict
[
"ROI%02d"
%
i
]
if
(
"ROI%02d"
%
i
)
in
el_dict
else
nan
for
i
in
range
(
72
)
]
)
Enominal
=
np
.
median
(
peaks_shifts
)
peaks_shifts
-=
Enominal
...
...
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