From 1b97307a1093cd2784d2292165fc63dd03ab6d29 Mon Sep 17 00:00:00 2001 From: Dan White Date: Fri, 2 Nov 2012 17:19:54 -0500 Subject: [PATCH] Update py modules --- python-lib/calibrate.py | 3 +++ python-lib/devboard.py | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/python-lib/calibrate.py b/python-lib/calibrate.py index c10f955..afda007 100644 --- a/python-lib/calibrate.py +++ b/python-lib/calibrate.py @@ -1,5 +1,8 @@ +#bad practice, but... +from pylab import * from time import sleep + from termplotter import TermPlotter tplot = TermPlotter([-2**11, 2**11], width=80) diff --git a/python-lib/devboard.py b/python-lib/devboard.py index 356aa11..3192594 100644 --- a/python-lib/devboard.py +++ b/python-lib/devboard.py @@ -127,6 +127,11 @@ def meas_isupply(): return result +def print_isupply(): + for name, i in meas_isupply().iteritems(): + print '%-10s %8.2f uA' % (name, 1e6*i) + + def dump_config(): """Return a hierarchical dict of settings appropriate for passing to the individual constructors. -- 2.25.1