16 from __future__
import print_function
17 from __future__
import absolute_import
20 from .
import wiimoteConstants
as acConst
26 def report(str, debuglevel=acConst._DEBUGLEVEL):
27 """For error reporting, controlled by debuglevel."""
29 print(str, file=sys.stderr)
33 def log(str, file=None):
34 if acConst._MONITOR_LEVEL > 0:
35 print(str, file=sys.stderr)
40 print(str, file=sys.stderr)
45 """Return current time as float of seconds since beginning of Epoch."""
49 if __name__ ==
'__main__':
50 foo = np.array([(4.0, 3.0, 3.0)])
51 bar = np.array([(4.0, 3.0, 3.0)])
53 isGreater = np.greater(foo, bar)
54 isBad = np.greater(foo, bar).any()
55 test = (foo > bar).any()
57 print(repr(isGreater))