Skip to content

Commit bb28717

Browse files
committed
comment for readability
1 parent 2963677 commit bb28717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpmpy/expressions/globalfunctions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def decompose_comparison(self, cmp_op, cpm_rhs):
395395
constraints = []
396396

397397
# introduce boolvar for each possible value
398-
bvars = boolvar(shape=(ub+1-lb,))
398+
bvars = boolvar(shape=(ub+1-lb,)) # shape is tuple to ensure it is a 1D array
399399

400400
args = cpm_array(self.args)
401401
# bvar is true if the value is taken by any variable

0 commit comments

Comments
 (0)