Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VIGNET Pierre
cadbiom
Commits
8ae2efc5
Commit
8ae2efc5
authored
Nov 19, 2019
by
VIGNET Pierre
Browse files
[lib] CLUnfolder: Remove questionable opti in squery_solve()
parent
db0e8396
Changes
1
Hide whitespace changes
Inline
Side-by-side
library/cadbiom/models/clause_constraints/mcl/CLUnfolder.py
View file @
8ae2efc5
...
...
@@ -1197,16 +1197,6 @@ class CLUnfolder(object):
# until max_step is reached.
# Otherwise, __steps_before_check is set to (maxstep - 1) only
# to allow us to search solutions for the last step (max_step).
# Thus, as we know the current loop is for the
# last step only, we do not need to make merge temp_raw_solutions
# with raw_solutions
# => The while loop is stopped now and we return solutions
# or an empty list
## NOTE: this optimization is questionable
if
self
.
__steps_before_check
==
max_step
-
1
:
if
temp_raw_solutions
:
return
temp_raw_solutions
return
[]
if
temp_raw_solutions
:
raw_solutions
+=
temp_raw_solutions
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment