From: W. Trevor King Date: Sat, 17 Dec 2011 01:52:50 +0000 (-0500) Subject: Fix names -> name_units typo in slow_bend's Monitor._make_header. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3dde10395257f9a76dd02f9ad160b4fbd1cf45cd;p=mw2txt.git Fix names -> name_units typo in slow_bend's Monitor._make_header. --- diff --git a/posts/slow_bend/slow_bend.py b/posts/slow_bend/slow_bend.py index 77d38df..0e235b0 100755 --- a/posts/slow_bend/slow_bend.py +++ b/posts/slow_bend/slow_bend.py @@ -189,9 +189,9 @@ class Monitor (object): name_units = [('chan {}'.format(c.index), c.range.unit.name) for c in self.channels] if self.with_temperature: - names.insert(0, ('temperature', self.temperature.pv_units)) + name_units.insert(0, ('temperature', self.temperature.pv_units)) if self.with_ambient_temperature: - names.insert(0, ('ambient temperature', self.temperature.pv_units)) + name_units.insert(0, ('ambient temperature', self.temperature.pv_units)) for name,unit in name_units: fields.extend(['{} ({})'.format(name, u) for u in ['bit', unit]]) headline = '#{}'.format('\t'.join(fields))