PLCGenerator.py
changeset 261 6fe3ee00f9a0
parent 257 d0a0ffbbd61c
child 269 34eff05909b0
equal deleted inserted replaced
260:ad7ced0e5662 261:6fe3ee00f9a0
   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: