pub struct FitsRun {
pub counts: Array3<f64>,
pub edges_us: Vec<f64>,
pub shutters: Vec<Shutter>,
}Expand description
One chunk of a raw frame-mode run.
Fields§
§counts: Array3<f64>Raw counts in (time bin, row, column), rows in file order.
edges_us: Vec<f64>Time-bin edges in µs, one more than the bins.
shutters: Vec<Shutter>The run’s shutters in time order.
Implementations§
Source§impl FitsRun
impl FitsRun
Sourcepub fn limit_to_beam_pulses(&mut self, pulses: f64) -> Result<(), IoError>
pub fn limit_to_beam_pulses(&mut self, pulses: f64) -> Result<(), IoError>
Limits each shutter’s triggers to the pulses that carried beam.
The camera triggers on every pulse, with or without protons, so a run paused with the beam off has more triggers than neutron pulses.
§Errors
IoError::InvalidParameter unless pulses is a whole number above 0.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FitsRun
impl RefUnwindSafe for FitsRun
impl Send for FitsRun
impl Sync for FitsRun
impl Unpin for FitsRun
impl UnsafeUnpin for FitsRun
impl UnwindSafe for FitsRun
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more