__info__ improvement
How to improve bliss objects info ?
- Too much information ex: axis, ... ?
- "expert" info ?
- stats of counters ? ( #2775 (closed) not good)
- config info ? (no hw access)
tutu -> __info__() # only for user info
tutu.show_config
tutu.show_stats
tutu.show_expert_info
related issues:
- #1346
- #1285
- #3140 axis info improvement
- #3073 uniformization of motors controllers: missing get_axis_info() and info()
- #1777 (closed)
- https://gitlab.esrf.fr/bliss/bliss/-/merge_requests/2583 pi_e712 fix controller info and ...
- !3676 shhexapod
- https://gitlab.esrf.fr/bliss/bliss/-/issues/2712 PEPU info
- 2515-symetrie-hexapod-v1-and-v2-implement-info
- MUSST enc info missing value in steps
# Include statistics if available.
# example:
# SamplingCounterStatistics(mean=52.17, N=94, std=30.008, var=900.493,
# min=0.19, max=99.86, p2v=99.67, count_time=1, timestamp='2021-05-21 14:00:52.82')
try:
mean, N, std, var, min, max, p2v, _, timestamp = self.statistics
if timestamp is not None:
info_str += f" Statistics: mean={mean:g}, N={N}, std={std:g}, var={var:g}, min={min:g}, max={max:g}, p2v={p2v:g}\n"
except AttributeError:
pass
Edited by Cyril Guilloud