get_info, __repr__, show: we need consistency for getting info on controllers
There are many ways to get information on controllers, depending on type.
It will be great to get bliss homogenous about info API.
For instance motors have .get_info()
, lima cameras have __repr__
, counters have nothing, temperatures have .show()
or nothing.
NB: there was a MR for axis related to this question: https://gitlab.esrf.fr/bliss/bliss/merge_requests/1059
NB2: brave old skeleton of doc/discussion about that: https://bliss.gitlab-pages.esrf.fr/bliss/master/dev_write_ctrl.html#str-and-repr-methods
Let's find a way to execute a pre-defined method but not __repr__()
when calling an object in BLISS shell.
example, instead of:
DEMO [5]: m1
Out [5]: <bliss.common.axis.Axis object at 0x7faa59ff12b0>
would be nice to have something like:
DEMO [5]: m1
motor m1 (alis of ...)
position = 3.22
dial =
offset =
config file =
type= icepap
address=
...
- feasible in the bliss shell?
- which command to call ?
get_info()
status()
- ???