def _reportHowMayaIsStupid_(self): _m1_time = sum(self.l_times_1) _m2_time = sum(self.l_times_2) cgmGeneral.report_enviornment() for i,t in enumerate(self.l_times_1): _dif = t - self.l_times_2[i] self.log_info("Step {0} | Method 1: {1}| Method 2: {2} | Difference: {3}".format(i,"%0.3f"%t,"%0.3f"%self.l_times_2[i],"%0.3f"%_dif)) self.log_info(cgmGeneral._str_headerDiv + " Times " + cgmGeneral._str_headerDiv + cgmGeneral._str_subLine) self.log_info("Iterations: {0} | Children: {1} | Method 1: {2} | Method 2: {3}".format(self.int_iterations, self.int_children, "%0.3f"%_m1_time, "%0.3f"%_m2_time))
def _reportHowMayaIsStupid_(self): _m1_time = sum(self.l_times_1) _m2_time = sum(self.l_times_2) cgmGeneral.report_enviornment() _hitBreakPoint = False for i,t in enumerate(self.l_times_1): _dif = t - self.l_times_2[i] if _hitBreakPoint is False and _dif > 0: _hitBreakPoint = i self.log_info("Step {0} | Method 1: {1}| Method 2: {2} | Difference: {3}".format(i,"%0.3f"%t,"%0.3f"%self.l_times_2[i],"%0.3f"%_dif)) self.log_info(cgmGeneral._str_headerDiv + " Times " + cgmGeneral._str_headerDiv + cgmGeneral._str_subLine) self.log_info("Iterations: {0} | Method 1: {1} | Method 2: {2} | Breakpoint: Iteration {3}".format(self.int_iterations, "%0.3f"%_m1_time, "%0.3f"%_m2_time, _hitBreakPoint))
def _reportHowMayaIsStupid_(self): _m1_time = sum(self.l_times_1) _m2_time = sum(self.l_times_2) cgmGeneral.report_enviornment() for i, t in enumerate(self.l_times_1): _dif = t - self.l_times_2[i] self.log_info( "Step {0} | Method 1: {1}| Method 2: {2} | Difference: {3}" .format(i, "%0.3f" % t, "%0.3f" % self.l_times_2[i], "%0.3f" % _dif)) self.log_info(cgmGeneral._str_headerDiv + " Times " + cgmGeneral._str_headerDiv + cgmGeneral._str_subLine) self.log_info( "Iterations: {0} | Children: {1} | Method 1: {2} | Method 2: {3}" .format(self.int_iterations, self.int_children, "%0.3f" % _m1_time, "%0.3f" % _m2_time))
def get_enviornmentInfo( *a ): try: cgmGeneral.report_enviornment() except Exception,error: log.warning("[Failed to report enviornment]{%s}"%error)