From a57ee6c2a2fe83577fce085f1ad9e1ed266bcabf Mon Sep 17 00:00:00 2001 From: Eva Lott Date: Wed, 27 Mar 2024 09:24:20 +0000 Subject: [PATCH] fixed bug where the correct widget pvi format wasn't used --- src/pandablocks_ioc/_pvi.py | 2 +- tests/test-bobfiles/DATA.bob | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pandablocks_ioc/_pvi.py b/src/pandablocks_ioc/_pvi.py index c2476ce0..293bee17 100644 --- a/src/pandablocks_ioc/_pvi.py +++ b/src/pandablocks_ioc/_pvi.py @@ -154,7 +154,7 @@ def add_automatic_pvi_info( else: widget = TextRead(format=None) - component = SignalR(name=pvi_name, pv=record_name, widget=TextRead()) + component = SignalR(name=pvi_name, pv=record_name, widget=widget) access = "r" add_pvi_info_to_record(record, record_name, access) diff --git a/tests/test-bobfiles/DATA.bob b/tests/test-bobfiles/DATA.bob index 34fa3566..ec0050f7 100644 --- a/tests/test-bobfiles/DATA.bob +++ b/tests/test-bobfiles/DATA.bob @@ -88,6 +88,7 @@ 1 + 6 @@ -291,6 +292,7 @@ 1 + 6