pub struct SpectralReconstructionResult {
pub channels: Vec<SpectralChannelResult>,
pub object_coupling: ObjectCoupling,
pub trace: ReconstructionTrace,
pub runtime: RuntimeInfo,
pub checkpoint: Option<SpectralReconstructionCheckpoint>,
}Expand description
Channel-ordered spectral reconstruction output and algorithm-neutral trace.
Unconstrained spectral AP has independent phase pistons for independent
fields, or one for shared-complex coupling. Shared-complex records contain
identical final objects. Joint OPD descent additionally constrains channel
phases via one referenced OPD; object_coupling still describes the compiled
model’s field storage, not that solver’s real-parameter constraints.
Fields§
§channels: Vec<SpectralChannelResult>Ordered channel records pairing IDs/wavelengths with scientific arrays.
object_coupling: ObjectCouplingCompiled model’s complex-field storage/reuse rule.
trace: ReconstructionTraceWeighted, mask-aware objectives and elapsed times. Spectral AP records pre-update pass objectives; joint OPD descent records an iteration-zero initial objective followed by post-update full-data objectives.
runtime: RuntimeInfoAlgorithm name, completed iterations, and elapsed seconds.
checkpoint: Option<SpectralReconstructionCheckpoint>Final iteration-boundary state for supported stateless solvers. Joint descent keeps its resumable state in the enclosing OPD result instead.
Implementations§
Source§impl SpectralReconstructionResult
impl SpectralReconstructionResult
Sourcepub fn unwrap_opd(
&self,
unwrapper: &SyntheticWavelengthUnwrapper,
reference: &PhaseReference,
mask: Option<ArrayView2<'_, u8>>,
) -> Result<OpticalPathDifferenceResult>
pub fn unwrap_opd( &self, unwrapper: &SyntheticWavelengthUnwrapper, reference: &PhaseReference, mask: Option<ArrayView2<'_, u8>>, ) -> Result<OpticalPathDifferenceResult>
Mixes independent channel phases into a referenced nondispersive OPD map.
Uses channel metadata for wavelength ordering. Shared-complex coupling is
rejected because identical complex phases do not express 2π OPD / λ.
Source§impl SpectralReconstructionResult
impl SpectralReconstructionResult
Sourcepub fn write_bundle(
&self,
path: impl AsRef<Path>,
options: BundleExportOptions,
) -> Result<SpectralResultBundle>
pub fn write_bundle( &self, path: impl AsRef<Path>, options: BundleExportOptions, ) -> Result<SpectralResultBundle>
Writes a separate spectral bundle from a supported solver’s final checkpoint. Scientific arrays use lossless NPY, traces/channel metadata use Parquet. Existing destinations get a numbered sibling; publication is manifest-last. Preview generation is not supported for this format and must be disabled.
Trait Implementations§
Source§impl Clone for SpectralReconstructionResult
impl Clone for SpectralReconstructionResult
Source§fn clone(&self) -> SpectralReconstructionResult
fn clone(&self) -> SpectralReconstructionResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SpectralReconstructionResult
impl RefUnwindSafe for SpectralReconstructionResult
impl Send for SpectralReconstructionResult
impl Sync for SpectralReconstructionResult
impl Unpin for SpectralReconstructionResult
impl UnsafeUnpin for SpectralReconstructionResult
impl UnwindSafe for SpectralReconstructionResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more