equal
deleted
inserted
replaced
813 else: |
813 else: |
814 return eval(paths) |
814 return eval(paths) |
815 |
815 |
816 def ComputeExpression(self, body, connections, order = False): |
816 def ComputeExpression(self, body, connections, order = False): |
817 paths = self.GeneratePaths(connections, body, order) |
817 paths = self.GeneratePaths(connections, body, order) |
818 print paths |
|
819 if len(paths) > 1: |
818 if len(paths) > 1: |
820 factorized_paths = self.FactorizePaths(paths) |
819 factorized_paths = self.FactorizePaths(paths) |
821 if len(factorized_paths) > 1: |
820 if len(factorized_paths) > 1: |
822 paths = tuple(factorized_paths) |
821 paths = tuple(factorized_paths) |
823 else: |
822 else: |