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
if a composite arrow is a source arrow, it will cause invert to fail.
This is because the logic of invert is wrong, it turns the outport into an inport and then throws an error when it cant fix the links.
Could add a special case for this but is there a more general solution?
"Broadcasted Source"functionbsource(x)
c =CompArrow(:bsource)
ssarr =add_sub_arr!(c, source(x))
bsarr =add_sub_arr!(c, Arrows.BroadcastArrow())
◃(ssarr, 1) ⥅▹(bsarr, 1)
link_to_parent!(◃(bsarr, 1))
c
bsource!(arr::Arrow, x) =◃(Arrows.add_sub_arr!(arr, bsource(x)), 1)
functionifelseconst()
carr =CompArrow(:ifelseconst, [:a, :b, :c], [:z])
a, b, c, z =⬨(carr)
d =ifelse(c >bsource!(carr, 3),
a + b,
a * b)
d ⥅ z
@assertis_valid(carr)
carr
endinvert(ifelseconst())
Note, bsource! has been updated to avoid this error
The text was updated successfully, but these errors were encountered:
if a composite arrow is a source arrow, it will cause invert to fail.
This is because the logic of invert is wrong, it turns the outport into an inport and then throws an error when it cant fix the links.
Could add a special case for this but is there a more general solution?
Note, bsource! has been updated to avoid this error
The text was updated successfully, but these errors were encountered: