pub enum ZfpCodecError {
UnsupportedDtype(AnyArrayDType),
FixedAccuracyModeIntegerData,
ExcessiveDimensionality {
shape: Vec<usize>,
},
InvalidExpertMode {
mode: ZfpCompressionMode,
},
HeaderEncodeFailed,
ZfpEncodeFailed,
EncodedDataNotBytes {
dtype: AnyArrayDType,
},
EncodedDataNotOneDimensional {
shape: Vec<usize>,
},
HeaderDecodeFailed,
MismatchedDecodeIntoArray {
source: AnyArrayAssignError,
},
DecodeUnknownDtype(u32),
ZfpDecodeFailed,
}
Expand description
Errors that may occur when applying the ZfpCodec
.
Variants§
UnsupportedDtype(AnyArrayDType)
ZfpCodec
does not support the dtype
FixedAccuracyModeIntegerData
ZfpCodec
does not support the fixed accuracy mode for integer data
ExcessiveDimensionality
ZfpCodec
only supports 1-4 dimensional data
InvalidExpertMode
ZfpCodec
was configured with an invalid expert mode
Fields
mode: ZfpCompressionMode
The unexpected compression mode
HeaderEncodeFailed
ZfpCodec
failed to encode the header
ZfpEncodeFailed
ZfpCodec
failed to encode the data
EncodedDataNotBytes
ZfpCodec
can only decode one-dimensional byte arrays but received
an array of a different dtype
Fields
dtype: AnyArrayDType
The unexpected dtype of the encoded array
EncodedDataNotOneDimensional
ZfpCodec
can only decode one-dimensional byte arrays but received
an array of a different shape
HeaderDecodeFailed
ZfpCodec
failed to decode the header
MismatchedDecodeIntoArray
ZfpCodec
cannot decode into the provided array
Fields
source: AnyArrayAssignError
The source of the error
DecodeUnknownDtype(u32)
ZfpCodec
failed to decode the data with the unknown dtype
ZfpDecodeFailed
ZfpCodec
failed to decode the data