opsvis icon indicating copy to clipboard operation
opsvis copied to clipboard

UnboundLocalError

Open ADuzandeh opened this issue 1 year ago • 1 comments

Please guide me with this error!!!

I face this error when using: "opsv.plot_model()"

"UnboundLocalError: local variable 'm_type' referenced before assignment"

the code line that I used: "opsv.plot_model(node_labels=1,element_labels=0,node_supports=True,fig_wi_he=(40,15),fmt_model=
{'color': [0.5,0.5,0.5],'linestyle':'solid','linewidth':1.2,'marker':'.','markersize':5})"

Thank you for your time.

ADuzandeh avatar Feb 15 '24 09:02 ADuzandeh

I will fix this issue. For now try the following modification:

fmt_model={'color': [0.5,0.5,0.5],'linestyle':'solid','linewidth':1.2,'marker':'.','markersize':5}
opsv.plot_model(node_labels=1,element_labels=0,node_supports=True,fig_wi_he=(40,15))

sewkokot avatar Feb 16 '24 22:02 sewkokot