Script execution

This commit is contained in:
gac-x04sa
2018-10-30 10:48:42 +01:00
parent da2597e625
commit 591beceab1

View File

@@ -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:")