diff --git a/library/cadbiom/models/clause_constraints/mcl/CLUnfolder.py b/library/cadbiom/models/clause_constraints/mcl/CLUnfolder.py index cd28e41874d50b86c6af1435104b86120ba9b6d9..6842ea39711037f5cdd4b574fa7ccc05ab98717d 100644 --- a/library/cadbiom/models/clause_constraints/mcl/CLUnfolder.py +++ b/library/cadbiom/models/clause_constraints/mcl/CLUnfolder.py @@ -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" """ diff --git a/library/cadbiom/models/clause_constraints/mcl/MCLSolutions.py b/library/cadbiom/models/clause_constraints/mcl/MCLSolutions.py index 2d79218640bb2bfabd971061de1fb89677280a2c..b681a02f83f1fa876864cd2f9ff373ca523ea4d5 100644 --- a/library/cadbiom/models/clause_constraints/mcl/MCLSolutions.py +++ b/library/cadbiom/models/clause_constraints/mcl/MCLSolutions.py @@ -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)