Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cadbiom
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIGNET Pierre
cadbiom
Commits
21acce7d
Commit
21acce7d
authored
5 years ago
by
VIGNET Pierre
Browse files
Options
Downloads
Patches
Plain Diff
[cmd][lib] switch get_shift_direction to a proper property
parent
6a2489a1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
library/cadbiom/models/clause_constraints/mcl/CLUnfolder.py
+2
-1
2 additions, 1 deletion
library/cadbiom/models/clause_constraints/mcl/CLUnfolder.py
library/cadbiom/models/clause_constraints/mcl/MCLSolutions.py
+1
-1
1 addition, 1 deletion
...ary/cadbiom/models/clause_constraints/mcl/MCLSolutions.py
with
3 additions
and
2 deletions
library/cadbiom/models/clause_constraints/mcl/CLUnfolder.py
+
2
−
1
View file @
21acce7d
...
...
@@ -576,7 +576,8 @@ class CLUnfolder(object):
"""
Get the DIMACS codes of the input variables
"""
return
self
.
__inputs
def
get_shift_direction
(
self
):
@property
def
shift_direction
(
self
):
"""
@return: string
"
FORWARD
"
or
"
BACKWARD
"
"""
...
...
This diff is collapsed.
Click to expand it.
library/cadbiom/models/clause_constraints/mcl/MCLSolutions.py
+
1
−
1
View file @
21acce7d
...
...
@@ -135,7 +135,7 @@ class RawSolution(object):
self
.
unfolder
=
unfolder
self
.
shift_step
=
unfolder
.
shift_step
self
.
current_step
=
unfolder
.
current_step
self
.
shift_direction
=
unfolder
.
get_
shift_direction
()
self
.
shift_direction
=
unfolder
.
shift_direction
def
get_unshift_code
(
self
,
var_num
):
"""
Get the real value of the given variable in the system (remove the shift)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment