From 0d9ff376fdc464784f91e9e8e48403c8baf7dd59 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Sun, 3 Aug 2025 18:53:22 +0200 Subject: [PATCH] Update slic/utils/hastyepics.py --- slic/utils/hastyepics.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/slic/utils/hastyepics.py b/slic/utils/hastyepics.py index a656841f6..b93be66ce 100644 --- a/slic/utils/hastyepics.py +++ b/slic/utils/hastyepics.py @@ -20,21 +20,21 @@ class Motor(epics.Motor): raise MotorException("must supply motor name") if name.endswith('.VAL'): - print (name) + print("Before :", name, "\n") name = name[:-4] - print (name) + print("After :", name, "\n") if name.endswith('.'): - print (name) + print("Before :", name, "\n") name = name[:-1] - print (name) + print("After :", name, "\n") self._prefix = name - print(self._prefix) + print("Prefix :", name, "\n") Device.__init__(self, name, delim='.', attrs=self._init_list, timeout=timeout) - print(self._prefix) + print("After device :", name, "\n") # speed up: do not get any data from PVs during construction # # make sure this is really a motor! # rectype = self.get('RTYP') @@ -44,9 +44,9 @@ class Motor(epics.Motor): for key, val in self._extras.items(): pvname = "%s%s" % (name, val) self.add_pv(pvname, attr=key) - print(self._prefix) + print("After add_pv:", name, "\n") self._callbacks = {} - print(self._prefix) + print("End :", name, "\n") # speed up: used by Motor.get_pv() with connect=True, i.e., waiting for connection