Fix names -> name_units typo in slow_bend's Monitor._make_header.
authorW. Trevor King <wking@drexel.edu>
Sat, 17 Dec 2011 01:52:50 +0000 (20:52 -0500)
committerW. Trevor King <wking@drexel.edu>
Sat, 17 Dec 2011 02:17:02 +0000 (21:17 -0500)
posts/slow_bend/slow_bend.py

index 77d38df6bb4abbf05b9d1f276b1bd25df47dc611..0e235b0627c9dc54e3be6c0db3d8069af0d1b471 100755 (executable)
@@ -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))