18 import wiimoteConstants
as acConst
30 def report(str, debuglevel=acConst._DEBUGLEVEL):
31 """For error reporting, controlled by debuglevel.""" 33 print >> sys.stderr, str
36 def log(str, file=None):
37 if acConst._MONITOR_LEVEL > 0:
38 print >> sys.stderr, str
43 print >> sys.stderr, str
47 """Return current time as float of seconds since beginning of Epoch.""" 51 if __name__ ==
'__main__':
53 foo = np.array([(4.0,3.0,3.0)])
54 bar = np.array([(4.0,3.0,3.0)])
56 isGreater = np.greater(foo,bar)
57 isBad = np.greater(foo,bar).any()
58 test = (foo > bar).any()
def report(str, debuglevel=acConst._DEBUGLEVEL)