... | ... | @@ -72,7 +72,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
|
|
|
|
... | ... | @@ -104,6 +104,29 @@ This dictionary contains list of diagnostics used. Each item contains: |
|
|
|
|
|
![Screenshot_20220919_171501](uploads/c60b0dbe64b00878b6f5a9b00f77829f/Screenshot_20220919_171501.png)
|
|
|
|
|
|
#### version()
|
|
|
|
|
|
print out the verison of the library. When I'm writing this, the latest one is from 19.9.2022.
|
|
|
|
|
|
#### get_PPU_open(run,return_bool_array=0,use_cache=1,debug=0)
|
|
|
|
|
|
Reads the PPU data, finds out when was PPU open, and returns the list of trains. most useful in connection with get_array or get_image, as described above. You can also ask to get the bool array of PPU, which is useful for plotting, like:\
|
|
|
`PPU_open,PPU_trains,PPU_open_bool=em.get_PPU_open(run,1)`
|
|
|
|
|
|
`plt.plot(PPU_trains, PPU_open_bool)`
|
|
|
|
|
|
#### get_run_info(run)
|
|
|
|
|
|
will return you the run number, proposal number, and data type (i.e. processed or raw)
|
|
|
|
|
|
#### listen_for_shot()
|
|
|
|
|
|
Great function for online analysis. If you call it on online cluster, it starts waiting and listening to some service, and once a run and its data calibration is completed, this function will return you the run number.
|
|
|
|
|
|
#### get_IPM_OPT(run,PPU,trainId,calibration)
|
|
|
|
|
|
Shall return you an energy measured by IPM \[μJ\]. The calibration constants are hardcoded in the software. If you are using this for some new experiment, you rather do your calibration yourself and put it in. And you might ask me for a jupyter labbook which does the calibration. If you use calibration='2022-08', then the calibration from proposal #3129 running on 8200 eV will be used. PPU and trainId parameters are used as in get_array().
|
|
|
|
|
|
## Obsolete functions:
|
|
|
|
|
|
### get_shot_trainId_2 (run,diag='JF4',debug=0,use_cache=1)
|
... | ... | |