Skip to content

Commit

Permalink
remove encoding validity check for quantize - it's pointless
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Nov 22, 2024
1 parent 1fe11f6 commit 4ca87a6
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions test/Filters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,7 @@ end
reshape(LinRange(100, 200, 1000), (10, 10, 10)), # np.linspace(100, 200, 1000, dtype='<f8').reshape(10, 10, 10)
]

@testset "Encoding accuracy" begin
for codec in codecs
@testset "$(codec.digits) digits" begin
for array in arrays
encoded = Zarr.zencode(array, codec)
decoded = reshape(reinterpret(eltype(array), Zarr.zdecode(encoded, codec)), size(array))
@test decoded array rtol=(1.5*10.0^(-codec.digits))
end
end
end
end
# No need to test encoding accuracy - decoding is a no op.

@testset "Decode is a no-op" begin
for codec in codecs
Expand Down

0 comments on commit 4ca87a6

Please sign in to comment.