From 9b4a200808b99ebc94e08a2692979a5bc030acf4 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Sun, 3 May 2020 15:55:08 +0000 Subject: [PATCH] checker -> condition --- alvra.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/alvra.py b/alvra.py index ceb7a80..102421a 100755 --- a/alvra.py +++ b/alvra.py @@ -4,7 +4,7 @@ from slic.controls import PV from slic.daq import BSCounter, DBCounter, DIACounter, PVCounter from slic.scans import Scanner from slic.utils import Channels, Config, Elog, Screenshot -from slic.checkers import PVChecker +from slic.condition import PVCondition from slic.utils import devices @@ -25,7 +25,7 @@ fn_channels = "./slickits/alvra/config/channel_list" channels = Channels(fn_channels) -check_intensity = PVChecker("SARFE10-PBPG050:HAMP-INTENSITY-CAL", vmin=-100, vmax=300, wait_time=3, required_fraction=0.8) +check_intensity = PVCondition("SARFE10-PBPG050:HAMP-INTENSITY-CAL", vmin=-100, vmax=300, wait_time=3, required_fraction=0.8) bsdaqJF = DIACounter(cfg.instrument, cfg.pgroup, default_channels=channels) @@ -34,7 +34,7 @@ scansJF = Scanner( # scan_info_dir="/sf/alvra/data/{}/res/scan_info".format(cfg.pgroup), scan_info_dir="./", default_counters=[bsdaqJF], - checker=check_intensity, + condition=check_intensity, )