Mentions légales du service

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

[lib] MCLSolutions: Fix typos

parent d6c4b872
No related branches found
No related tags found
No related merge requests found
...@@ -588,7 +588,7 @@ class FrontierSolution(object): ...@@ -588,7 +588,7 @@ class FrontierSolution(object):
return self.activated_frontier == other.activated_frontier return self.activated_frontier == other.activated_frontier
def __ne__(self, other): def __ne__(self, other):
"""Python 2 ...""" """Python 2 requires this in conjunction to __eq__..."""
return self.__eq__(other) return self.__eq__(other)
def __hash__(self): def __hash__(self):
...@@ -680,6 +680,7 @@ class DimacsFrontierSol(object): ...@@ -680,6 +680,7 @@ class DimacsFrontierSol(object):
# Pre-compute nb of activated frontiers in the current solution # Pre-compute nb of activated frontiers in the current solution
# PS: use numpy to accelerate this ? The cast is costly... # PS: use numpy to accelerate this ? The cast is costly...
# We could keep a separated function and use lru_cache instead... # 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) self.nb_activated_frontiers = len(self.activated_frontier_values)
@classmethod @classmethod
...@@ -769,7 +770,7 @@ class DimacsFrontierSol(object): ...@@ -769,7 +770,7 @@ class DimacsFrontierSol(object):
return self.activated_frontier_values == other.activated_frontier_values return self.activated_frontier_values == other.activated_frontier_values
def __ne__(self, other): def __ne__(self, other):
"""Python 2 ...""" """Python 2 requires this in conjunction to __eq__..."""
return self.__eq__(other) return self.__eq__(other)
def __hash__(self): def __hash__(self):
......
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