Skip to content

Commit 06a3cd6

Browse files
committed
WIP
1 parent bdab4fa commit 06a3cd6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/fastcs/backends/epics/gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def extract_mapping_components(self, mapping: SingleMapping) -> Tree:
145145
for name, sub_controller in mapping.controller.get_sub_controllers().items():
146146
components.append(
147147
Group(
148-
name=snake_to_pascal(name),
148+
name=sub_controller.label or snake_to_pascal(name),
149149
layout=SubScreen(),
150150
children=self.extract_mapping_components(
151151
_get_single_mapping(sub_controller)

src/fastcs/controller.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,7 @@ class SubController(BaseController):
6969
it as part of a larger device.
7070
"""
7171

72-
def __init__(self) -> None:
72+
def __init__(self, label: str | None = None) -> None:
7373
super().__init__()
74+
75+
self.label = label

0 commit comments

Comments
 (0)