We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd1d735 commit 140f317Copy full SHA for 140f317
src/matrixmodels/matrixmodels.jl
@@ -57,9 +57,8 @@ struct NoZ2Sym <: Z2Symmetry end
57
function ACE.write_dict(z2s::Z2S) where {Z2S<:Z2Symmetry}
58
return Dict("__id__" => string("ACEfriction_Z2Symmetry"), "z2s"=>typeof(z2s))
59
end
60
-function ACE.read_dict(::Val{:ACEfriction_Z2Symmetry}, D::Dict)
61
- z2s = getfield(ACEfriction.MatrixModels, Symbol(D["z2s"]))
62
- return z2s()
+function ACE.read_dict(::Val{:ACEfriction_Z2Symmetry}, D::Dict) # This one includes its entire type string.
+ return Symbol(D["z2s"])()
63
64
abstract type SpeciesCoupling end
65
@@ -703,4 +702,4 @@ include("./pwcmatrixmodels.jl")
703
702
# Omsite-only matrix models:
704
include("./onsiteonlymatrixmodels.jl")
705
706
-end
+end
0 commit comments