Commit d23128c8 authored by blissadm@id30_massif3's avatar blissadm@id30_massif3
Browse files

Python 2.6 compatibility

parent 5869172c
......@@ -100,7 +100,7 @@ class CounterAcqDevice(AcquisitionDevice):
self._nb_acq_points += 1
data = acc_value / nb_read
channel_data = {name:data[index] for index,name in enumerate(counter_name)}
channel_data = dict([(name, data[index]) for index,name in enumerate(counter_name)])
dispatcher.send("new_data",self,
{"channel_data": channel_data})
self._ready_flag = True
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment