Skip to content

Commit d3f2bbe

Browse files
authored
Merge pull request #644 from European-XFEL/doc/alias-key-eg
Add an example of specifying a single alias with a source/key pair
2 parents 9473590 + 7f4c609 commit d3f2bbe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/reading_files.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,15 @@ You can then access sources and keys by aliases through the
110110
.. code-block:: yaml
111111
112112
xgm: SA2_XTD1_XGM/XGM/DOOCS
113+
energy-kev: [MID_XTD1_UND/DOOCS/ENERGY, actualPosition]
113114
MID_DET_AGIPD1M-1/DET/3CH0:xtdf:
114115
agipd3-data: image.data
115116
agipd3-mask: image.mask
116117
117118
Then we would be able to run::
118119

119120
run.alias["xgm"] # SourceData of the XGM
121+
run.alias["energy-kev"] # KeyData for the undulator actualPosition property
120122
run.alias["agipd3-data"] # KeyData for image.data
121123
run.alias["agipd3-mask"] # KeyData for image.mask
122124

0 commit comments

Comments
 (0)