Commit 3bd16769 authored by Valentin Valls's avatar Valentin Valls
Browse files

Set unit to CT2CounterTimer

parent 009af896
Pipeline #46002 passed with stages
in 104 minutes and 14 seconds
......@@ -33,9 +33,9 @@ from bliss.controllers.counter import IntegratingCounterController
class CT2Counter(IntegratingCounter):
def __init__(self, name, channel, controller):
def __init__(self, name, channel, controller, unit=None): = channel
super().__init__(name, controller)
super().__init__(name, controller, unit=unit)
def convert(self, data):
return data
......@@ -48,7 +48,10 @@ class CT2CounterTimer(CT2Counter):
def __init__(self, name, controller):
self.timer_freq = controller._master_controller.timer_freq
super(CT2CounterTimer, self).__init__(
name, controller._master_controller.internal_timer_counter, controller
def convert(self, ticks):
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