emat/model/core_files/gbnrtc_model.py
def __set_kenslrt_strategy(self, macro, evar, exp_var): 
        ''' call TransCAD macro and return both strategies to completed list'''
        # kensington and lrt strategy are interdependent
        kens = int(exp_var['Kensington Decommissioning'])
        lrt = int(exp_var['LRT Extension'])

        self.tc.RunMacro("G30 File Close All", self.exp_param_ui)  
        ret = self.tc.RunMacro(macro, 
                               self.exp_param_ui, 
                               self.mod_path_tc,
                               kens, lrt)
        
        ret = self.tc.RunMacro("VA", 
                               self.exp_param_ui, 
                               self.mod_path_tc,
                               float(exp_var['Shared Mobility']))
        if ret != 0:
            raise SystemError("Error in setting LRT / Kensington to {0}/{1}" 
                              .format(lrt, kens)) 
            
        return ['Kensington Decommissioning', 'LRT Extension']
 call TransCAD macro and return both strategies to completed list
call TransCAD macro and return both strategies to completed list
call TransCAD macro and return both strategies to completed list
def __set_kenslrt_strategy(self, macro, evar, exp_var): 
        kens = int(exp_var['Kensington Decommissioning'])
        lrt = int(exp_var['LRT Extension'])
        self.tc.RunMacro("G30 File Close All", self.exp_param_ui)  
        ret = self.tc.RunMacro(macro, 
                               self.exp_param_ui, 
                               self.mod_path_tc,
                               kens, lrt)
        ret = self.tc.RunMacro("VA", 
                               self.exp_param_ui, 
                               self.mod_path_tc,
                               float(exp_var['Shared Mobility']))
        if ret != 0:
            raise SystemError("Error in setting LRT / Kensington to {0}/{1}" 
                              .format(lrt, kens)) 
        return ['Kensington Decommissioning', 'LRT Extension']
def __set_kenslrt_strategy ( self , macro , evar , exp_var ) : kens = int ( exp_var [ 'Kensington Decommissioning' ] ) lrt = int ( exp_var [ 'LRT Extension' ] ) self . tc . RunMacro ( "G30 File Close All" , self . exp_param_ui ) ret = self . tc . RunMacro ( macro , self . exp_param_ui , self . mod_path_tc , kens , lrt ) ret = self . tc . RunMacro ( "VA" , self . exp_param_ui , self . mod_path_tc , float ( exp_var [ 'Shared Mobility' ] ) ) if ret != 0 : raise SystemError ( "Error in setting LRT / Kensington to {0}/{1}" . format ( lrt , kens ) ) return [ 'Kensington Decommissioning' , 'LRT Extension' ]
call TransCAD macro and return both strategies to completed list
call TransCAD macro and return both strategies to completed list
''' call TransCAD macro and return both strategies to completed list''' # kensington and lrt strategy are interdependent
self
macro
evar
exp_var