From 88fa720d1ef7b6bc1191d0f4141790a5c19a91fa Mon Sep 17 00:00:00 2001 From: Zack Li Date: Mon, 7 Oct 2024 18:33:42 -0700 Subject: [PATCH] add complex fill value decoding --- src/metadata.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/metadata.jl b/src/metadata.jl index f3dc5df..7cadd9e 100644 --- a/src/metadata.jl +++ b/src/metadata.jl @@ -218,3 +218,4 @@ fill_value_decoding(v::Nothing, ::Any) = v fill_value_decoding(v, T) = T(v) fill_value_decoding(v::Number, T::Type{String}) = v == 0 ? "" : T(UInt8[v]) fill_value_decoding(v, ::Type{ASCIIChar}) = v == "" ? nothing : v +fill_value_decoding(v::Vector, T::Type{<:Complex}) = T(v[1], v[2])