From 4e6009c139673c3004aca9ec08d99eaff3354024 Mon Sep 17 00:00:00 2001 From: VIGNET Pierre <pierre.vignet@irisa.fr> Date: Thu, 21 Nov 2019 01:59:57 +0100 Subject: [PATCH] [lib] MCLSolutions: Fix typos --- .../cadbiom/models/clause_constraints/mcl/MCLSolutions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/cadbiom/models/clause_constraints/mcl/MCLSolutions.py b/library/cadbiom/models/clause_constraints/mcl/MCLSolutions.py index 96c6bd5..fbac5db 100644 --- a/library/cadbiom/models/clause_constraints/mcl/MCLSolutions.py +++ b/library/cadbiom/models/clause_constraints/mcl/MCLSolutions.py @@ -588,7 +588,7 @@ class FrontierSolution(object): return self.activated_frontier == other.activated_frontier def __ne__(self, other): - """Python 2 ...""" + """Python 2 requires this in conjunction to __eq__...""" return self.__eq__(other) def __hash__(self): @@ -680,6 +680,7 @@ class DimacsFrontierSol(object): # Pre-compute nb of activated frontiers in the current solution # PS: use numpy to accelerate this ? The cast is costly... # We could keep a separated function and use lru_cache instead... + ## TODO: replace by len() call magic method self.nb_activated_frontiers = len(self.activated_frontier_values) @classmethod @@ -769,7 +770,7 @@ class DimacsFrontierSol(object): return self.activated_frontier_values == other.activated_frontier_values def __ne__(self, other): - """Python 2 ...""" + """Python 2 requires this in conjunction to __eq__...""" return self.__eq__(other) def __hash__(self): -- GitLab