read_dict not defined for `ACE_VectorOfNumber`

#7 · closed · 1 comments

View on GitHub ↗

CheukHinHoJerry

When reading some models generated from old code I have to explicitly import the following function and extend `read_dict`: ```julia function ACEbase.FIO.read_dict(::Val{:ACE_VectorOfNumber}, D::Dict) T = read_dict(D["T"]) A = T.(D["real"]) if T <: Complex A[:] .+= im .* D["imag"] end return A end ``` Maybe a warning should be prompted together with this work around for people who do not aware this or is it a problem from my end?

Comments

cortner

I think this interface will not really be supported going forward so might as well close this