pub struct ResultBundle {
pub path: PathBuf,
pub manifest_path: PathBuf,
pub run_id: String,
pub label: Option<String>,
pub tables: BundleTables,
pub arrays: BundleArrays,
pub previews: BundlePreviews,
/* private fields */
}Expand description
One final, disk-backed reconstruction bundle.
The manifest and artifact handles are eager. Scientific arrays and domain objects are hash-checked, loaded, and cached on first access.
Fields§
§path: PathBufBundle root directory.
manifest_path: PathBufPath to the bundle manifest JSON file.
run_id: StringUnique run identifier shared by tables and manifest.
label: Option<String>Optional human-readable result label.
tables: BundleTablesParquet table descriptors.
arrays: BundleArraysLossless scientific-array descriptors.
previews: BundlePreviewsOptional derived preview descriptors.
Implementations§
Source§impl ResultBundle
impl ResultBundle
Sourcepub fn read(path: impl AsRef<Path>) -> Result<Self>
pub fn read(path: impl AsRef<Path>) -> Result<Self>
Opens a complete bundle and validates manifest paths and required artifact metadata.
Sourcepub fn object(&self) -> Result<Arc<Array2<Complex64>>>
pub fn object(&self) -> Result<Arc<Array2<Complex64>>>
Hash-checks, lazily loads, and caches the high-resolution complex object.
Sourcepub fn object_spectrum(&self) -> Result<Arc<Array2<Complex64>>>
pub fn object_spectrum(&self) -> Result<Arc<Array2<Complex64>>>
Hash-checks, lazily loads, and caches the centered complex object spectrum.
Sourcepub fn pupil(&self) -> Result<Arc<Array2<Complex64>>>
pub fn pupil(&self) -> Result<Arc<Array2<Complex64>>>
Hash-checks, lazily loads, and caches low-resolution complex pupil values.
Sourcepub fn pupil_support(&self) -> Result<Arc<Array2<u8>>>
pub fn pupil_support(&self) -> Result<Arc<Array2<u8>>>
Hash-checks, lazily loads, and caches the low-resolution binary pupil support.
Sourcepub fn result(&self) -> Result<Arc<ReconstructionResult>>
pub fn result(&self) -> Result<Arc<ReconstructionResult>>
Lazily reconstructs and caches a validated domain result from lossless artifacts.
Sourcepub fn diagnostics(&self) -> Result<Option<Arc<ReconstructionDiagnostics>>>
pub fn diagnostics(&self) -> Result<Option<Arc<ReconstructionDiagnostics>>>
Lazily loads and caches optional structured diagnostics JSON.
Sourcepub fn evaluation(&self) -> Result<Option<Arc<ReconstructionEvaluation>>>
pub fn evaluation(&self) -> Result<Option<Arc<ReconstructionEvaluation>>>
Lazily loads and caches optional structured ground-truth evaluation JSON.
Sourcepub fn physical_illumination_calibration(
&self,
) -> Result<Option<Arc<IlluminationCalibrationState>>>
pub fn physical_illumination_calibration( &self, ) -> Result<Option<Arc<IlluminationCalibrationState>>>
Lazily loads and caches optional physical planar-array calibration state.
Sourcepub fn calibrated_model(&self) -> Result<Option<Arc<ImagePlaneModel>>>
pub fn calibrated_model(&self) -> Result<Option<Arc<ImagePlaneModel>>>
Lazily loads and caches the optional final model compiled from physical calibration.
Sourcepub fn clear_cache(&self)
pub fn clear_cache(&self)
Drops this bundle’s shared in-memory array and domain-object cache.
Sourcepub fn verify(&self) -> Result<BundleVerificationResult>
pub fn verify(&self) -> Result<BundleVerificationResult>
Verifies existence, byte size, SHA-256, NPY metadata, Parquet schema, and run IDs.
Trait Implementations§
Source§impl Clone for ResultBundle
impl Clone for ResultBundle
Source§fn clone(&self) -> ResultBundle
fn clone(&self) -> ResultBundle
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 ResultBundle
impl RefUnwindSafe for ResultBundle
impl Send for ResultBundle
impl Sync for ResultBundle
impl Unpin for ResultBundle
impl UnsafeUnpin for ResultBundle
impl UnwindSafe for ResultBundle
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