pub struct ReconstructionCheckpoint {
pub format_version: u32,
pub completed_iterations: usize,
pub object_spectrum: Array2<Complex64>,
pub pupil: Pupil,
pub illumination_corrections: Option<Vec<(f64, f64)>>,
pub frame_gains: Option<Vec<f64>>,
pub background: Option<Vec<f64>>,
pub algorithm_auxiliary: Option<AlgorithmAuxiliaryState>,
pub history: ReconstructionHistory,
}Expand description
Serializable algorithm state used to resume a reconstruction exactly.
Fields§
§format_version: u32§completed_iterations: usize§object_spectrum: Array2<Complex64>§pupil: Pupil§illumination_corrections: Option<Vec<(f64, f64)>>Per-source (row, column) corrections in Fourier-grid pixels.
frame_gains: Option<Vec<f64>>§background: Option<Vec<f64>>§algorithm_auxiliary: Option<AlgorithmAuxiliaryState>§history: ReconstructionHistoryImplementations§
Source§impl ReconstructionCheckpoint
impl ReconstructionCheckpoint
pub fn capture( completed_iterations: usize, state: &ReconstructionState, history: &ReconstructionHistory, ) -> Self
pub fn save(&self, path: impl AsRef<Path>) -> Result<()>
pub fn load(path: impl AsRef<Path>) -> Result<Self>
Sourcepub fn load_for_problem<M: MeasurementRead>(
path: impl AsRef<Path>,
problem: &ReconstructionProblem<M>,
) -> Result<Self>
pub fn load_for_problem<M: MeasurementRead>( path: impl AsRef<Path>, problem: &ReconstructionProblem<M>, ) -> Result<Self>
Loads a checkpoint and verifies all dimensions and calibration counts against the problem that will resume it.
Sourcepub fn validate(&self) -> Result<()>
pub fn validate(&self) -> Result<()>
Validates integrity that does not depend on a reconstruction problem.
Sourcepub fn validate_for_problem<M: MeasurementRead>(
&self,
problem: &ReconstructionProblem<M>,
) -> Result<()>
pub fn validate_for_problem<M: MeasurementRead>( &self, problem: &ReconstructionProblem<M>, ) -> Result<()>
Validates checkpoint dimensions and calibration variables for problem.
Trait Implementations§
Source§impl Clone for ReconstructionCheckpoint
impl Clone for ReconstructionCheckpoint
Source§fn clone(&self) -> ReconstructionCheckpoint
fn clone(&self) -> ReconstructionCheckpoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReconstructionCheckpoint
impl Debug for ReconstructionCheckpoint
Source§impl<'de> Deserialize<'de> for ReconstructionCheckpoint
impl<'de> Deserialize<'de> for ReconstructionCheckpoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ReconstructionCheckpoint
impl RefUnwindSafe for ReconstructionCheckpoint
impl Send for ReconstructionCheckpoint
impl Sync for ReconstructionCheckpoint
impl Unpin for ReconstructionCheckpoint
impl UnsafeUnpin for ReconstructionCheckpoint
impl UnwindSafe for ReconstructionCheckpoint
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