Skip to content

Commit

Permalink
feat: change CHO init
Browse files Browse the repository at this point in the history
  • Loading branch information
Byung committed Nov 16, 2022
1 parent 8ad0962 commit 0225a4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/daidepp/daide_visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,12 @@ def visit_occ(self, node, visited_children):
def visit_cho(self, node, visited_children):
_, _, range, _, par_arrangements = visited_children

min_choice, max_choice = tuple([int(x) for x in range.text.split()])
minimum, maximum = tuple([int(x) for x in range.text.split()])
arrangements = []
for par_arrangement in par_arrangements:
_, arrangement, _ = par_arrangement
arrangements.append(arrangement)
return CHO(min_choice, max_choice, *arrangements)
return CHO(minimum, maximum, *arrangements)

def visit_for(self, node, visited_children):
_, _, turn, _, _, arrangement, _ = visited_children[0]
Expand Down

0 comments on commit 0225a4f

Please sign in to comment.