File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
name = " DistributedFactorGraphs"
2
2
uuid = " b5cc3c7e-6572-11e9-2517-99fb8daf2f04"
3
- version = " 0.10.5 "
3
+ version = " 0.10.6 "
4
4
5
5
[deps ]
6
6
Base64 = " 2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
Original file line number Diff line number Diff line change @@ -84,7 +84,16 @@ function getTypeFromSerializationModule(softtypeString::String)
84
84
else
85
85
m = Main
86
86
end
87
- return getfield (m, Symbol (split_st[end ]))
87
+ noparams = split (split_st[end ], r" {" )
88
+ ret = if 1 < length (noparams)
89
+ # fix #671, but does not work with specific module yet
90
+ bidx = findfirst (r" {" , split_st[end ])[1 ]
91
+ eval (Base. Meta. parse (" Main.$(noparams[1 ])$(split_st[end ][bidx: end ]) " ))
92
+ else
93
+ getfield (m, Symbol (split_st[end ]))
94
+ end
95
+
96
+ return ret
88
97
89
98
catch ex
90
99
@error " Unable to deserialize soft type $(softtypeString) "
You can’t perform that action at this time.
0 commit comments