Page History
...
Code Block | ||
---|---|---|
| ||
eventsWith42 = eventCodes[:,42]==1 cspad=f['/Configure:0000/Run:0000/CalibCycle:0000/CsPad::ElementV2/XppGon.0:Cspad.0/data'] assert len(eventsWith42)==len(cspad), "There are cases when datasets for different types " + \ "are not aligned due to damage, it is best to do more than this and check that the times datasets are the same between cspad and the evrdata" cspadAt42 = cspad[eventsWith42] cspadAt42.shape # this returns (121, 32, 185, 388) avgAt42 = np.sumaverage(cspadAt42,0) avgAt42.shape # this returns (32, 185, 388) |
...
Overview
Content Tools