Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 21acce7d authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[cmd][lib] switch get_shift_direction to a proper property

parent 6a2489a1
No related branches found
No related tags found
No related merge requests found
......@@ -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"
"""
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment