fix(signal-info): fix signal_info role to be file_event insteaad of file event

This commit is contained in:
2026-06-18 13:56:09 +02:00
parent efd916598f
commit 75d4c43873
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -52,7 +52,7 @@ class SignalInfo(BaseModel):
description="The scope of the signal indicates whether it is relevant for a specific "
"scan or provides continuous updates, independent of a scan.",
)
role: Literal["main", "preview", "diagnostic", "file event", "progress"] = Field(
role: Literal["main", "preview", "diagnostic", "file_event", "progress"] = Field(
default="main",
description="The role of the signal provides context for its usage and allows other components to filter"
" or prioritize signals based on their intended function.",
@@ -98,7 +98,7 @@ class BECMessageSignal(Signal):
saved: bool = True,
ndim: Literal[0, 1, 2] | None = None,
scope: Literal["scan", "continuous"] = "scan",
role: Literal["main", "preview", "diagnostic", "file event", "progress"] = "main",
role: Literal["main", "preview", "diagnostic", "file_event", "progress"] = "main",
acquisition_group: Literal["baseline", "monitored"] | str | None = None,
enabled: bool = True,
signals: _SignalsTypes | Callable[[], _SignalsTypes] = None,
@@ -385,7 +385,7 @@ class FileEventSignal(BECMessageSignal):
saved=False,
ndim=0,
scope="scan",
role="file event",
role="file_event",
signal_metadata=None,
value=value,
bec_message_type=messages.FileMessage,
+1 -1
View File
@@ -488,7 +488,7 @@ def test_utils_file_event_signal():
"saved": False,
"ndim": 0,
"scope": "scan",
"role": "file event",
"role": "file_event",
"enabled": True,
"rpc_access": False,
"signals": [("file_event_signal", 5)],