diff --git a/CHANGELOG.md b/CHANGELOG.md index 4031d135..b4679f7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + - Fix `compute_encoded_size()` for `BitroundCodec` incorrectly indicating various data types were unsupported + ## [0.13.0] - 2024-04-20 ### Added diff --git a/Cargo.toml b/Cargo.toml index 43924e4e..d50e6e2a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zarrs" -version = "0.13.0" +version = "0.13.1" authors = ["Lachlan Deakin "] edition = "2021" rust-version = "1.75" diff --git a/src/array/codec/array_to_array/bitround/bitround_codec.rs b/src/array/codec/array_to_array/bitround/bitround_codec.rs index c7c5845b..ea4595a8 100644 --- a/src/array/codec/array_to_array/bitround/bitround_codec.rs +++ b/src/array/codec/array_to_array/bitround/bitround_codec.rs @@ -135,9 +135,20 @@ impl ArrayToArrayCodecTraits for BitroundCodec { ) -> Result { let data_type = decoded_representation.data_type(); match data_type { - DataType::Float16 | DataType::BFloat16 | DataType::Float32 | DataType::Float64 => { - Ok(decoded_representation.clone()) - } + DataType::Float16 + | DataType::BFloat16 + | DataType::Float32 + | DataType::Float64 + | DataType::UInt8 + | DataType::Int8 + | DataType::UInt16 + | DataType::Int16 + | DataType::UInt32 + | DataType::Int32 + | DataType::UInt64 + | DataType::Int64 + | DataType::Complex64 + | DataType::Complex128 => Ok(decoded_representation.clone()), _ => Err(CodecError::UnsupportedDataType( data_type.clone(), IDENTIFIER.to_string(),