lcls-users / btx

BeamTime with X-rays - miscellaneous functions for aiding analysis during LCLS experiments.
https://lcls-users.github.io/btx/
Other
1 stars 12 forks source link

Add events mask #379

Closed rdeeban closed 4 months ago

rdeeban commented 4 months ago

Goal: add a parameter events_mask to the method compute_run_stats in the RunDiagnostics class that contains a Boolean mask of considered events. If an event is marked True, then this event will be included in the computed "powder". Otherwise, if it is False, then it will not.

Example of expected behavior:

rd = RunDiagnostics(exp='amo11416', run=1, det_type='pnccdFront')
rd.compute_run_stats(events_mask=np.array([True, False, True, ..., False, False]))
rdeeban commented 4 months ago

Changes reverted.