From d4103a02de472184a51d038605af8c1b24759957 Mon Sep 17 00:00:00 2001 From: Dmitri Gavrilov Date: Thu, 14 Sep 2023 14:23:54 -0400 Subject: [PATCH] Fix default initial value for TRIGGER field of SEQ table --- src/pandablocks_ioc/_tables.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pandablocks_ioc/_tables.py b/src/pandablocks_ioc/_tables.py index e076248c..619a5e2b 100644 --- a/src/pandablocks_ioc/_tables.py +++ b/src/pandablocks_ioc/_tables.py @@ -384,7 +384,9 @@ def __init__( scalar_record = builder.mbbIn( scalar_record_name, *field_details.labels, - initial_value=field_details.labels.index(initial_value), + initial_value=field_details.labels.index(initial_value) + if isinstance(initial_value, str) + else initial_value, DESC=scalar_record_desc, )