Skip to content

Commit

Permalink
FIX: include quotes in output script for string values
Browse files Browse the repository at this point in the history
  • Loading branch information
ZLLentz committed Nov 18, 2024
1 parent 24cf188 commit 84a9f8e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions beams/bin/test_ioc.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ class BTSimIOC(PVGroup):
{{ pv_info.python_name }} = pvproperty(
name="{{ pv_info.pvname }}",
doc="Fake {{ pv_info.pvname }}",
{% if pv_info.dtype == "STRING" %}
value="{{ pv_info.value }}",
{% else %}
value={{ pv_info.value }},
{% endif %}
dtype=ChannelType.{{ pv_info.dtype }},
{% if pv_info.enum_strings %}
enum_strings={{ pv_info.enum_strings }},
Expand Down

0 comments on commit 84a9f8e

Please sign in to comment.