Changeset 220


Ignore:
Timestamp:
Sep 16, 2009, 1:40:25 PM (11 years ago)
Author:
marchulsman
Message:

Solve bug in execution planner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • container/qg_translate.py

    r203 r220  
    2828   
    2929    def compatible(self,node,context):
    30         return True
     30        return 0
    3131
    3232    def incompatible(self,node,context):
     
    154154                compat_ccs.append(ncheck)
    155155                cost_ccs.append(cost)
    156             
     156           
    157157            #shortcut decision if there is only one option
    158158            if(len(compat_ccs) == 1):
     
    172172
    173173                #get the one with the lowest cost
    174                 ncompat = min(zip(cost_ccs,compat_ccs),operator.itemgetter(0))
     174                ncompat = min(zip(cost_ccs,compat_ccs),key=operator.itemgetter(0))
    175175                if(isinstance(ncompat,list)):
    176176                    ncompat = ncompat[0]
Note: See TracChangeset for help on using the changeset viewer.