def _checkmotors(self, *args):
        for mname in args:
            if mname not in self.motors:
                raise Exception("Error: unknown motor name '%s'" % mname)
check that all args are motor names
dataset/ETHPy150Open xraypy/xraylarch/plugins/epics/spyk.py/Spyk._checkmotors