You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just tinkered with this in console for a bit, I think you're just overwriting the "vtree" name. When I named it vtr instead the vtree() call at the end returns a vtree (I'm not sure what causes that overwrite to have last statement get a circuit type...)
oops, yeah, I think you are correct haha. I was expecting the function vtree gets called. I think this is common enough (people naming their vtree as vtree) that we should somehow prevent this mistake.
I removed to ability to use a vtree object as a function to construct circuit nodes in 00177e3
The code should now throw an error rather than silently giving a circuit node.
I think it is due to some type issues:
minimal example:
It returns a
PlainStruct⋁Node
instead of aPlainVtree
. If I dosstructplc.vtree
returns the correct value though.The code seems to be from here, maybe a different code is getting called.
https://github.com/Juice-jl/LogicCircuits.jl/blob/65038f92373d07c58716cfec0d998487a2b8f040/src/structured/structured_logic_nodes.jl#L103
The text was updated successfully, but these errors were encountered: