Lines Matching refs:FLAGS
61 FLAGS = flags.FLAGS variable
329 if not [f for f in useful_flags if FLAGS.get(f, None) is not None]:
331 print FLAGS.MainModuleHelp()
334 if FLAGS.includeusb:
339 if FLAGS.avg and FLAGS.avg < 0:
343 mon = Monsoon(device=FLAGS.device, serialno=FLAGS.serialno)
345 if FLAGS.voltage is not None:
346 if FLAGS.ramp is not None:
347 mon.RampVoltage(mon.start_voltage, FLAGS.voltage)
349 mon.SetVoltage(FLAGS.voltage)
351 if FLAGS.current is not None:
352 mon.SetMaxCurrent(FLAGS.current)
354 if FLAGS.status:
358 if FLAGS.usbpassthrough:
359 if FLAGS.usbpassthrough == 'off':
361 elif FLAGS.usbpassthrough == 'on':
363 elif FLAGS.usbpassthrough == 'auto':
366 sys.exit('bad passthrough flag: %s' % FLAGS.usbpassthrough)
368 if FLAGS.samples:
387 while emitted < FLAGS.samples or FLAGS.samples == -1:
389 need = (native_hz - offset + FLAGS.hz - 1) / FLAGS.hz
398 offset += need * FLAGS.hz
402 if FLAGS.timestamp: print int(time.time()),
404 if FLAGS.avg:
408 if len(chan_deque) > FLAGS.avg: chan_deque.pop()
455 main(FLAGS(sys.argv))