Page History
...
Interactive analysis with IPython
The LCLS offline analysis group does have plans for a real interactive pyana, but currently this is not available.
2011-11-04 iPsana Interactive Analysis Framework.pdf
The version available in our offline release system is
IPython 0.9.1 – An enhanced Interactive Python.
so this is the one I've been using in these examples.
Not a whole lot more than a python shell.
...
Panel | ||
---|---|---|
| ||
|
Non-interactive batch analysis
Pyana jobs are designed to do batch analysis, but matplotlib plotting does not go well with this. If you want your job to produce graphics, make sure to use a matplotlib backend that writes the graphics directly to file, e.g. png files.
Multiprocessing
Pyana can make use of multiple core processing. On the command line, add the option '-p N' where N is the number of cores to use.
Extra care needs to be taken when plotting. Also, output files need to be made with the pyana mkfile command. The output will be merged at the end of the job, but may not be in order. So if you need events to be written to a file in chronological order, you're better off using single core processing.
Extracting the data with pyana, some examples
Outline of a pyana module
Like the other frameworks, pyana is an executable that loops through the XTC file and calls all
requested user modules at certain transitions. All the analysts need to do is to fill in the
relevant functions in their user analysis module:
Toggle Cloak | ||
---|---|---|
|
Extracting the data with pyana, some examples
Outline of a pyana module
Like the other frameworks, pyana is an executable that loops through the XTC file and calls all
requested user modules at certain transitions. All the analysts need to do is to fill in the
relevant functions in their user analysis module:
Toggle Cloak | ||
---|---|---|
|
Cloak | ||
---|---|---|
| ||
|
Panel | |||||||
---|---|---|---|---|---|---|---|
For the following two examples, check | |||||||
Cloak | |||||||
| |||||||
Panel | |||||||
For the following two examples, check out the latest version of the
|
...
Cloak | ||
---|---|---|
| ||
|
Image peak finding
Here are a collection of useful algorithms for image analysis: http://docs.scipy.org/doc/scipy/reference/ndimage.html
...
Panel | |||||||
---|---|---|---|---|---|---|---|
Try some plotting of CSPad data using xtcexplorer. Launch the explorer and load xpp48712 run 66 (a dark run):
|
Non-interactive batch analysis
Pyana jobs are designed to do batch analysis, but matplotlib plotting does not go well with this. If you want your job to produce graphics, make sure to use a matplotlib backend that writes the graphics directly to file, e.g. png files.
Multiprocessing
Pyana can make use of multiple core processing. On the command line, add the option '-p N' where N is the number of cores to use.
Extra care needs to be taken when plotting. Also, output files need to be made with the pyana mkfile command. The output will be merged at the end of the job, but may not be in order. So if you need events to be written to a file in chronological order, you're better off using single core processing.