... | ... | @@ -48,7 +48,7 @@ https://max-jhub.desy.de/user/msmid/lab/tree/GPFS/exfel/exp/HED/202101/p002621/u |
|
|
|
|
|
The basic routines are:
|
|
|
|
|
|
### open_run(proposal, runNo, data='all',verbose=0)
|
|
|
#### open_run(proposal, runNo, data='all',verbose=0)
|
|
|
|
|
|
proposal - int - number of the proposal
|
|
|
|
... | ... | @@ -60,7 +60,7 @@ verbose - if True, will make more output |
|
|
|
|
|
return run - the object to be passed to further functions.
|
|
|
|
|
|
### get_array() and get_image()
|
|
|
#### get_array() and get_image()
|
|
|
|
|
|
Both functions are working very similarly. They do have many possible options via various input parameters. Those are however set with proper default values, so if you don't know, don't set it. Below, the get_array() is explained first, get_image has then just tiny variations. Both serves to give you a value of some diagnostics. Simple usage would be
|
|
|
|
... | ... | @@ -74,7 +74,7 @@ _diag_nickname_ - name of the diagnostics you are interested in, as defined in t |
|
|
|
|
|
If you want to get an average value over all trains where PPU was open (very standard and smart thing), you will first get the trainIds from PPU, and then call the function as:
|
|
|
|
|
|
`PPU_open=em.get_PPU_open(run)\\\\\\\\\\\\\\\\ data,trains=em.get_array(run,diag_nickname,PPU=PPU_open)`
|
|
|
`PPU_open=em.get_PPU_open(run)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ data,trains=em.get_array(run,diag_nickname,PPU=PPU_open)`
|
|
|
|
|
|
If you want to get some other trains, you can call
|
|
|
|
... | ... | @@ -98,7 +98,7 @@ The **debug** parameter (boolean) can just turn on verbose output. |
|
|
|
|
|
The **dictionary** with the diagnostics can be avoided and the source name provided directly. In that case, no trainId offset is used, i.e. Jungfrau_image=em.get_image(run,runNo,diag_nickname='whatever', diag=”HED_IA1_JF500K1/DET/JNGFR01:daqOutput”, trainId=trainId,debug=debug,recalc=recalc) _not tested._
|
|
|
|
|
|
### Diagnostics
|
|
|
#### Diagnostics
|
|
|
|
|
|
This dictionary contains list of diagnostics used. Each item contains:
|
|
|
|
... | ... | |