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
40119bcc
Commit
40119bcc
authored
Feb 14, 2017
by
VIGNET Pierre
Browse files
Rewrite __m_shift_clause with comprehension list
parent
1b913055
Changes
1
Show whitespace changes
Inline
Side-by-side
cadbiom/models/clause_constraints/mcl/CLUnfolder.py
View file @
40119bcc
...
@@ -460,16 +460,9 @@ class CLUnfolder(object):
...
@@ -460,16 +460,9 @@ class CLUnfolder(object):
@warning: lock the unfolder
@warning: lock the unfolder
"""
"""
self
.
__locked
=
True
# shift_step must be frozen
self
.
__locked
=
True
# shift_step must be frozen
shift_c
=
[]
for
lit
in
ncl
:
if
lit
>
0
:
slit
=
lit
+
self
.
__shift_step
*
nb_steps
else
:
slit
=
lit
-
self
.
__shift_step
*
nb_steps
shift_c
.
append
(
slit
)
return
shift_c
return
[(
lit
+
self
.
__shift_step
*
nb_steps
)
if
lit
>
0
else
(
lit
-
self
.
__shift_step
*
nb_steps
)
for
lit
in
ncl
]
def
__shift_dynamic
(
self
):
def
__shift_dynamic
(
self
):
"""
"""
...
...
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