From bcfd9ac461597bef305bbb611e12ab5f649aacc3 Mon Sep 17 00:00:00 2001 From: Anshul Singhvi Date: Fri, 22 Nov 2024 10:04:07 -0500 Subject: [PATCH] fix fixed-scale-offset again --- src/required_zarr_filters.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/required_zarr_filters.jl b/src/required_zarr_filters.jl index fb180aa..1c3c7d3 100644 --- a/src/required_zarr_filters.jl +++ b/src/required_zarr_filters.jl @@ -83,8 +83,7 @@ function zencode(a::AbstractArray, c::FixedScaleOffsetFilter{ScaleOffsetType, T, end function zdecode(a::AbstractArray, c::FixedScaleOffsetFilter{ScaleOffsetType, T, Tenc}) where {T, Tenc, ScaleOffsetType} - data = _reinterpret(Base.nonmissingtype(T), a) - return @. (data / c.scale) + c.offset + return @. convert(Base.nonmissingtype(T), (a / c.scale) + c.offset) end