mirror of
https://github.com/ivan-usov-org/bec.git
synced 2025-04-22 02:20:02 +02:00
fix: fixed get_software_triggered_devices to excluded disabled devices, complement test case
This commit is contained in:
parent
0c2ff423d0
commit
37e74dc206
@ -209,7 +209,11 @@ class DeviceContainer(dict):
|
||||
def get_software_triggered_devices(self) -> list:
|
||||
"""get a list of all devices that should receive a software trigger detectors"""
|
||||
# pylint: disable=protected-access
|
||||
return [dev for _, dev in self.items() if dev._config.get("softwareTrigger", False) is True]
|
||||
devices = [
|
||||
dev for _, dev in self.items() if dev._config.get("softwareTrigger", False) is True
|
||||
]
|
||||
excluded_devices = self.disabled_devices
|
||||
return [dev for dev in set(devices) if dev not in excluded_devices]
|
||||
|
||||
def _expand_device_name(self, device_name: str) -> list[str]:
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user