File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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))
7171end
7272function 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 ()
7575end
7676
@@ -83,7 +83,7 @@ function ACE.write_dict(evalcenter::EVALCENTER) where {EVALCENTER<:EvaluationCen
8383 return Dict (" __id__" => string (" ACEfriction_EvaluationMode" ), " evalcenter" => typeof (evalcenter))
8484end
8585function 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 ()
8888end
8989
You can’t perform that action at this time.
0 commit comments