'dict' object has no attribute 'set'
Master-liuliu opened this issue · 1 comments
Master-liuliu commented
When I use “net.set_options(options)”,the "'dict' object has no attribute 'set'" will appear whether I use dictionary type or string type or JSON type. How can I solve it?
philipbgm commented
Please post your code for the option function as that helps to solve the problem.
However, I assume that you have missed something in that JSON string as you have to modify the output from the GUI. As explained by @Marcin-Radecki here, the workaround is to add the configure option manually.
For example the GUI output
var options = {
"enabled": true
},
"edges": {
"arrowStrikethrough": false
}
has to be modified as below:
var options = {
"configure": {
"enabled": true
},
"edges": {
"arrowStrikethrough": false
}
}