Skip to main content

TiffLoadInfo

Struct TiffLoadInfo 

Source
pub struct TiffLoadInfo {
    pub n_files: usize,
    pub n_chunks: usize,
    pub chunk_ids: Vec<u64>,
    pub chunks_summed: bool,
    pub n_clipped_pixels: usize,
    pub n_unrecognized_files: usize,
    pub unrecognized_examples: Vec<String>,
    pub chunk_inconsistent: bool,
}
Expand description

Provenance metadata about a completed TIFF load.

Fields§

§n_files: usize

Number of TIFF files read (1 for a single multi-frame file).

§n_chunks: usize

Number of DAQ chunks detected (0 when the folder does not follow the chunked <prefix>_<chunk>_<frame> naming convention).

§chunk_ids: Vec<u64>

Detected chunk identifiers, ascending (empty when n_chunks == 0).

§chunks_summed: bool

Whether chunks were summed element-wise into a single stack.

§n_clipped_pixels: usize

Number of negative pixels clamped to zero. Only ever nonzero under PixelValuePolicy::ClipToZero.

§n_unrecognized_files: usize

Number of files that did not parse as <prefix>_<chunk>_<frame> while at least one other file in the same folder did — a mixed folder, where the non-conforming files disabled chunk detection and forced the legacy lexicographic load. 0 in every other path: single-file loads, fully chunk-patterned folders, folders where no file matches the convention (the normal frame_0000.tif world), and multi-prefix folders (every stem parses; a different, documented fallback).

§unrecognized_examples: Vec<String>

Lexicographically-first filenames of the non-conforming files, capped at MAX_UNRECOGNIZED_EXAMPLES entries so the provenance stays message-sized. Empty iff n_unrecognized_files == 0.

§chunk_inconsistent: bool

Whether the folder’s chunk-patterned files were internally inconsistent (ragged frame counts/sets or a duplicate (chunk, frame) pair) yet were still loaded, as the legacy lexicographic concatenation, because the caller opted out of summing (TiffFolderOptions::sum_chunks = false). This is a distinct signal from n_unrecognized_files: the files do follow <prefix>_<chunk>_<frame>, they just do not agree on a common frame set. Always false on the summing path — there the same inconsistency is a hard IoError::ChunkMismatch error, because summing ragged chunks would silently corrupt counts.

Trait Implementations§

Source§

impl Clone for TiffLoadInfo

Source§

fn clone(&self) -> TiffLoadInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TiffLoadInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for TiffLoadInfo

Source§

fn eq(&self, other: &TiffLoadInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for TiffLoadInfo

Source§

impl StructuralPartialEq for TiffLoadInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more