MCPcopy Create free account
hub / github.com/LabPy/lantz / ofeat

Function ofeat

lantz/drivers/olympus/ixbx.py:46–60  ·  view source on GitHub ↗

Build Feat :param command: command root (without ?) :param doc: docstring to be applied to the feature

(command, doc, **kwargs)

Source from the content-addressed store, hash-verified

44INTSTR = (int, str)
45
46def ofeat(command, doc, **kwargs):
47 """Build Feat
48
49 :param command: command root (without ?)
50 :param doc: docstring to be applied to the feature
51 """
52
53 def _get(self):
54 response = self.query(command + '?')
55 return response
56
57 def _set(self, value):
58 self.query('{} {}'.format(command, value))
59
60 return Feat(_get, _set, doc=doc, **kwargs)
61
62
63class IXBX(MessageBasedDriver):

Callers 3

IXBXClass · 0.70
IX2Class · 0.70
BX2AClass · 0.70

Calls 1

FeatClass · 0.90

Tested by

no test coverage detected