Skip to content

Commit 57b411d

Browse files
committed
chore: amend p4p raw value logic to strip suffix
1 parent 98fdd76 commit 57b411d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fastcs/transport/epics/pva/pvi_tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _get_signal_infos(self) -> dict[str, _PviSignalInfo]:
8080
def _make_p4p_raw_value(self) -> dict:
8181
p4p_raw_value = defaultdict(dict)
8282
for pv_leaf, signal_info in self._get_signal_infos().items():
83-
stripped_leaf = pv_leaf.rstrip(":PVI")
83+
stripped_leaf = pv_leaf.removesuffix(":PVI")
8484
is_controller = stripped_leaf != pv_leaf
8585
pvi_name, number = _pv_to_pvi_name(stripped_leaf or pv_leaf)
8686
if is_controller and number is not None and not pvi_name:

0 commit comments

Comments
 (0)