Skip to content

Commit 4ef86fe

Browse files
committed
Identical fixes for typeof
1 parent f6463d4 commit 4ef86fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/matrixmodels/matrixmodels.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function ACE.write_dict(sc::SC) where {SC<:SpeciesCoupling}
7070
return Dict("__id__" => string("ACEfriction_SpeciesCoupling"), "sc"=>typeof(sc))
7171
end
7272
function ACE.read_dict(::Val{:ACEfriction_SpeciesCoupling}, D::Dict)
73-
sc = getfield(ACEfriction.MatrixModels, Symbol(D["sc"]))
73+
sc = getfield(ACEfriction.MatrixModels, Symbol(split(D["sc"], ".")[end]))
7474
return sc()
7575
end
7676

@@ -83,7 +83,7 @@ function ACE.write_dict(evalcenter::EVALCENTER) where {EVALCENTER<:EvaluationCen
8383
return Dict("__id__" => string("ACEfriction_EvaluationMode"), "evalcenter"=>typeof(evalcenter))
8484
end
8585
function ACE.read_dict(::Val{:ACEfriction_EvaluationMode}, D::Dict)
86-
evalcenter = getfield(ACEfriction.MatrixModels, Symbol(D["evalcenter"]))
86+
evalcenter = getfield(ACEfriction.MatrixModels, Symbol(split(D["evalcenter"], ".")[end]))
8787
return evalcenter()
8888
end
8989

0 commit comments

Comments
 (0)