... | ... | @@ -46,9 +46,9 @@ Or a more complex one (comparing laser shot to preshot) at: |
|
|
|
|
|
https://max-jhub.desy.de/user/msmid/lab/tree/GPFS/exfel/exp/HED/202101/p002621/usr/Software/master/extra_mmm_test.ipynb
|
|
|
|
|
|
The basic routines are:
|
|
|
The basic routines and features are:
|
|
|
|
|
|
#### open_run(proposal, runNo, data='all',verbose=0)
|
|
|
#### open_run(proposal, runNo, data='all',verbose=0,local_dir='')
|
|
|
|
|
|
proposal - int - number of the proposal
|
|
|
|
... | ... | @@ -60,6 +60,10 @@ verbose - if True, will make more output |
|
|
|
|
|
return run - the object to be passed to further functions.
|
|
|
|
|
|
#### Offline (local) functionality
|
|
|
|
|
|
The default mode of operation of extra_mmm is to run on XFEL servers and get the data from Karabo DAC. However, for users's convinience it can run offline on your computer anywhere, and only read data from those you have cached online. For this, just copy the cache (scratch) from the scratch dir (e.g. _/GPFS/exfel/exp/HED/202202/p003129/scratch/extra_mmm/ )_ into your local folder, set the **_local_dir_** parameter to point to this folder, and you are ready to go! (you might also need to create an empty file called 'extra_data.py' to get rid of error complaining about this missing library. Don't worry, it shall not be needed.
|
|
|
|
|
|
#### 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 +78,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
|
|
|
|
... | ... | |