From 2ee490b5ceac4b87deb03d4f1b0e2392738766b9 Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Mon, 10 Nov 2014 18:58:29 +1100 Subject: [PATCH] Bug! missing ' else {' in gen_sct --- site_ansto/instrument/util/gen_sct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site_ansto/instrument/util/gen_sct.py b/site_ansto/instrument/util/gen_sct.py index 2285a95b..63b8ec68 100755 --- a/site_ansto/instrument/util/gen_sct.py +++ b/site_ansto/instrument/util/gen_sct.py @@ -1314,7 +1314,7 @@ def put_checkstatus_function(MyDriver, func): txt += [' if {[hpropexists [sct] simulated] && [sct simulated] == "true"} {'] txt += [' set pv "${sp}"'] txt += [' hupdateif ${tc_root}/[sct driveable] ${sp}'] - txt += [' }'] + txt += [' } else {'] txt += [' set pv "[hval ${tc_root}/[sct driveable]]"'] txt += [' }'] txt += [' if { abs(${pv} - ${sp}) <= [sct tolerance] } {']