pub enum ZfpClassicCodecError {
Show 14 variants
UnsupportedDtype(AnyArrayDType),
FixedAccuracyModeIntegerData,
ExcessiveDimensionality {
shape: Vec<usize>,
},
InvalidExpertMode {
mode: ZfpCompressionMode,
},
NonFiniteData,
HeaderEncodeFailed,
MetaHeaderEncodeFailed {
source: ZfpHeaderError,
},
ZfpEncodeFailed,
EncodedDataNotBytes {
dtype: AnyArrayDType,
},
EncodedDataNotOneDimensional {
shape: Vec<usize>,
},
HeaderDecodeFailed,
MetaHeaderDecodeFailed {
source: ZfpHeaderError,
},
MismatchedDecodeIntoArray {
source: AnyArrayAssignError,
},
ZfpDecodeFailed,
}Expand description
Errors that may occur when applying the ZfpClassicCodec.
Variants§
UnsupportedDtype(AnyArrayDType)
ZfpClassicCodec does not support the dtype
FixedAccuracyModeIntegerData
ZfpClassicCodec does not support the fixed accuracy mode for
integer data
ExcessiveDimensionality
ZfpClassicCodec only supports 1-4 dimensional data
InvalidExpertMode
ZfpClassicCodec was configured with an invalid expert mode
Fields
mode: ZfpCompressionModeThe unexpected compression mode
NonFiniteData
[ZfpCodec] does not support non-finite (infinite or NaN) floating
point data in non-reversible lossy compression
HeaderEncodeFailed
ZfpClassicCodec failed to encode the header
MetaHeaderEncodeFailed
ZfpClassicCodec failed to encode the array metadata header
Fields
source: ZfpHeaderErrorOpaque source error
ZfpEncodeFailed
ZfpClassicCodec failed to encode the data
EncodedDataNotBytes
ZfpClassicCodec can only decode one-dimensional byte arrays but
received an array of a different dtype
Fields
dtype: AnyArrayDTypeThe unexpected dtype of the encoded array
EncodedDataNotOneDimensional
ZfpClassicCodec can only decode one-dimensional byte arrays but
received an array of a different shape
HeaderDecodeFailed
ZfpClassicCodec failed to decode the header
MetaHeaderDecodeFailed
ZfpClassicCodec failed to decode the array metadata header
Fields
source: ZfpHeaderErrorOpaque source error
MismatchedDecodeIntoArray
ZfpClassicCodec cannot decode into the provided array
Fields
source: AnyArrayAssignErrorThe source of the error
ZfpDecodeFailed
ZfpClassicCodec failed to decode the data