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
kmap
xsocs
Commits
1da9cfca
Commit
1da9cfca
authored
Oct 24, 2016
by
Damien Naudet
Browse files
Using scan_positions instead of measurement.
parent
34053a76
Changes
2
Hide whitespace changes
Inline
Side-by-side
kmap/io/XsocsH5.py
View file @
1da9cfca
...
...
@@ -160,7 +160,6 @@ class XsocsH5(XsocsH5Base):
return
cumul
def
scan_positions
(
self
,
entry
):
# TODO : check the motors : could by x/y x/z y/z
path
=
self
.
measurement_tpl
.
format
(
entry
)
params
=
self
.
scan_params
(
entry
)
m0
=
'/adc{0}'
.
format
(
params
[
'motor_0'
][
-
1
].
upper
())
...
...
kmap/process/qspace.py
View file @
1da9cfca
...
...
@@ -718,8 +718,9 @@ def _img_2_qspace(data_h5f,
entry_files
=
[]
sample_x
=
master_h5
.
measurement
(
entries
[
0
],
'adcX'
)
sample_y
=
master_h5
.
measurement
(
entries
[
0
],
'adcY'
)
# sample_x = master_h5.measurement(entries[0], 'adcX')
# sample_y = master_h5.measurement(entries[0], 'adcY')
sample_x
,
sample_y
=
master_h5
.
scan_positions
(
entries
[
0
])
for
entry_idx
,
entry
in
enumerate
(
entries
):
entry_file
=
master_h5
.
entry_filename
(
entry
)
...
...
Write
Preview
Supports
Markdown
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