Skip to content

Commit

Permalink
Merge pull request #105 from PandABlocks/fix_test_format_error_in_hdf…
Browse files Browse the repository at this point in the history
…_file_path

fixed bug where the correct widget pvi format wasn't used
  • Loading branch information
evalott100 authored Mar 27, 2024
2 parents acfefb3 + a57ee6c commit e4c51ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pandablocks_ioc/_pvi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions tests/test-bobfiles/DATA.bob
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
</font>
</font>
<horizontal_alignment>1</horizontal_alignment>
<format>6</format>
</widget>
</widget>
<widget type="group" version="2.0.0">
Expand Down Expand Up @@ -291,6 +292,7 @@
</font>
</font>
<horizontal_alignment>1</horizontal_alignment>
<format>6</format>
</widget>
</widget>
</display>

0 comments on commit e4c51ea

Please sign in to comment.