Skip to content

Commit

Permalink
update cp method
Browse files Browse the repository at this point in the history
  • Loading branch information
hadipourh committed Jan 17, 2022
1 parent 68a3662 commit b5f52b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/gdcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 86,10 @@ def __init__(self, inputfile_name=None, outputfile_name='output', max_guess=0, m
self.num_of_vars = len(self.variables)
###############################
if (self.max_guess is None) or (self.max_guess > len(self.target_variables)):
self.max_guess = len(self.target_variables)
if self.notguessed_variables == None:
self.max_guess = len(self.target_variables)
else:
self.max_guess = len(self.variables)
print('Number of guessed variables is set to be at most %d' % self.max_guess)
self.deductions = self.generate_possible_deductions()
self.time_limit = -1
Expand Down

0 comments on commit b5f52b1

Please sign in to comment.