|
|
`\[\[\_TOC\_\]\]`
|
|
|
|
|
|
Hi, this should be the main place for collaborative documentation of extra_mmm.
|
|
|
|
|
|
## Hardware description
|
... | ... | @@ -72,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
|
|
|
|
... | ... | @@ -111,7 +113,7 @@ print out the verison of the library. When I'm writing this, the latest one is f |
|
|
#### 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)`
|
|
|
`PPU_open,PPU_trains,PPU_open_bool=em.get_PPU_open(run,1)`
|
|
|
|
|
|
`plt.plot(PPU_trains, PPU_open_bool)`
|
|
|
|
... | ... | |