Page History
...
Code Block |
---|
ami-local -e test -l /reg/g/psdm/tutorials/ami2/random/export.fc random:///reg/g/psdm/tutorials/ami2/random/worker.json |
Reference Plot Example
In AMI one can export the x,y values of a waveform to a .csv file using the "camera" icon shown in the top left of the above window. That .csv file can then be loaded with a LoadReference1D box which makes those values available for later analysis/display:
Code Block |
---|
ami-local -l /reg/g/psdm/tutorials/ami2/random/ref_waveform.fc -b 1 -f interval=1 psana://exp=tmoc00118,run=222,dir=/cds/data/psdm/prj/public01/xtc |
Event Filtering in AMI
Often an analysis wants to treat events differently based upon something in the data. A common example is the presence of an eventcode, which may indicate the firing of a pump laser or some other condition. If the selection logic is put into a PythonEditor box, then the editor box should return python's None object to indicate the event flow is to be terminated here; returning a value (even 0) causes the flow to continue with that value and possibly weighting your statistics in unexpected ways. An example flowchart and PythonEditor box is shown below. Other boxes can also handle filtering with their "conditional" attributes.
...