Skip to content

Commit

Permalink
Fix multi-cond version when inputs are the same across samples
Browse files Browse the repository at this point in the history
  • Loading branch information
pablormier committed Oct 2, 2024
1 parent 1c02be6 commit c2a980c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions corneto/methods/signalling/carnival.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,9 @@ def create_carnival_problem(
for (idx, _) in G.in_edges(v)
if len(G.get_edge(idx)[0]) == 0
]
P += Eact[other_input_edges, i] == 0
P += Einh[other_input_edges, i] == 0
if len(other_input_edges) > 0:
P += Eact[other_input_edges, i] == 0
P += Einh[other_input_edges, i] == 0

error = create_signed_error_expression(
P,
Expand Down

0 comments on commit c2a980c

Please sign in to comment.