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))