Transform counter namespaces in simple namespace
As I was very annoyed by our namespace
that does not have a __info__
and which does not seem to be easy to add to a namedtuple
I tried to use SimpleNamespace
instead and make the api the same as for the namedtuple (for now)
Sofar we got
TEST_SESSION [2]: lima_simulator.counters
Out [2]: namespace(image=<bliss.controllers.lima.properties.LimaImageCounter object at 0x7ff619ef1cd0>, acq_time=<bliss.controllers.lima.bpm.LimaBpmCounter object at 0x7ff61a26c890>, intensity=<bliss.controllers.lima.bpm.LimaBpmCounter object at 0x7ff61a26c0d0>, x=<bliss.controllers.lima.bpm.LimaBpmCounter object at 0x7ff61a29b390>, y=<bliss.controllers.lima.bpm.LimaBpmCounter object at 0x7ff61a29ba10>, fwhm_x=<bliss.controllers.lima.bpm.LimaBpmCounter object at 0x7ff61a29ba90>, fwhm_y=<bliss.controllers.lima.bpm.LimaBpmCounter object at 0x7ff61a29bf50>)
with this change it is supposed to be
TEST_SESSION [3]: lima_simulator.counters
Out [3]: Namespace containing:
.image
.acq_time
.intensity
.x
.y
.fwhm_x
.fwhm_y