From 591beceab1e7093bd32ff280c2209d02eaf35eb9 Mon Sep 17 00:00:00 2001 From: gac-x04sa Date: Tue, 30 Oct 2018 10:48:42 +0100 Subject: [PATCH] Script execution --- script/device/Pixel.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/script/device/Pixel.py b/script/device/Pixel.py index 8e1bb31..f802d22 100644 --- a/script/device/Pixel.py +++ b/script/device/Pixel.py @@ -100,9 +100,12 @@ class Pixel(DeviceBase, Readable, Readable.IntegerType): return status in ["Ready0", "Ready1"] def set_path(self, patha, pathb=""): + if not patha.endswith("/"): + patha=patha + "/" if pathb!="": - if not patha.endswith("/"): - patha=patha + "/" + if not pathb.endswith("/"): + pathb=pathb + "/" + caput(self.prefix + ":PATHa", patha) caput(self.prefix + ":PATHb", pathb) @@ -176,7 +179,9 @@ class Pixel(DeviceBase, Readable, Readable.IntegerType): if sms_flag == 1: notify ("Pixel detector seems to have recovered from error.") - + + def logwrite(self): + pass def show(self): print ("\nThe current pixel detector settings are:")