From 3dde10395257f9a76dd02f9ad160b4fbd1cf45cd Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 16 Dec 2011 20:52:50 -0500 Subject: [PATCH] Fix names -> name_units typo in slow_bend's Monitor._make_header. --- posts/slow_bend/slow_bend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) -- 2.26.2