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
kmap
xsocs
Commits
4e2b2b90
Commit
4e2b2b90
authored
Oct 26, 2016
by
Damien Naudet
Browse files
Added scan angles and acquisition_params methods.
parent
51e27525
Changes
1
Hide whitespace changes
Inline
Side-by-side
kmap/io/XsocsH5.py
View file @
4e2b2b90
...
...
@@ -83,6 +83,10 @@ class XsocsH5(XsocsH5Base):
self
.
_update_entries
()
return
self
.
__entries
[:]
def
scan_angle
(
self
,
entry
):
# TODO : get the correct angle name
return
self
.
positioner
(
entry
,
'eta'
)
def
get_entry_name
(
self
,
entry_idx
):
"""
Get the entry found at position *entry_idx* (entries names sorted
...
...
@@ -169,6 +173,22 @@ class XsocsH5(XsocsH5Base):
y_pos
=
self
.
_get_array_data
(
path
+
m1
)
return
(
x_pos
,
y_pos
)
def
acquisition_params
(
self
,
entry
):
beam_energy
=
self
.
beam_energy
(
entry
)
direct_beam
=
self
.
direct_beam
(
entry
)
pixel_size
=
self
.
pixel_size
(
entry
)
chan_per_deg
=
self
.
chan_per_deg
(
entry
)
detector_orient
=
self
.
detector_orient
(
entry
)
result
=
OrderedDict
()
result
[
'beam_energy'
]
=
beam_energy
result
[
'direct_beam'
]
=
direct_beam
result
[
'pixel_size'
]
=
pixel_size
result
[
'chan_per_deg'
]
=
chan_per_deg
result
[
'detector_orient'
]
=
detector_orient
return
result
def
scan_params
(
self
,
entry
):
return
self
.
__command_params
(
entry
,
[
'motor_0'
,
'motor_0_start'
,
...
...
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