Mesurement group: disable_all can fail
I think it is because the MG is already empty.
But i don't think it's a very good behaviour. If it's empty, it should not raise any exception.
DAIQUIRI [4]: ACTIVE_MG.disable_all()
!!! === ValueError: No match, could not disable any counter with patterns: === !!! ( for more details type cmd 'last_error' )
Out [4]: 25/11/2022 10:57:50 Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/blissadm/local/bliss.git/bliss/common/measurementgroup.py", line 445, in disable_all
self.disable(*self.available)
File "/home/blissadm/local/bliss.git/bliss/common/measurementgroup.py", line 106, in f
return func(self, *counter_names, **keys)
File "/home/blissadm/local/bliss.git/bliss/common/measurementgroup.py", line 372, in disable
f"No match, could not disable any counter with patterns: {','.join(counter_patterns)}"
ValueError: No match, could not disable any counter with patterns:
Out [5]: MeasurementGroup: tomo_mg (state='default')
- Existing states : 'default'
Enabled Disabled
------- -------
What do you think?