Page History
...
Code Block |
---|
mpirun -n 2 python mpiDataSource.py |
It is also possible to specify a hierarchy in the output hdf5 file by passing a hierarchy of dictionaries/values to smldata.event. This would produce hdf5 groups "cspad/calib", "cspad/raw", and "my_other_data".
Code Block |
---|
calib = det.calib(evt)
raw = det.raw(evt)
d = {'cspad' : {'calib': calib, 'raw': raw}, my_other_data = 3}
smldata.event(d) |
In addition to running offline, these parallel scripts can be run in real time while the data is being taken and can complete within a few minutes of the end of the run (you can see how to submit MPI psana-python batch jobs here). Note that this interface does not currently work with the shared-memory analysis mode.
...
Overview
Content Tools