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

Method parse_query

lantz/drivers/legacy/textual.py:147–159  ·  view source on GitHub ↗

Send query to the instrument, parse the output using format and return the answer. .. seealso:: TextualMixin.query and stringparser

(self, command, *,
                    send_args=(None, None), recv_args=(None, None),
                    format=None)

Source from the content-addressed store, hash-verified

145 return self.recv(*recv_args)
146
147 def parse_query(self, command, *,
148 send_args=(None, None), recv_args=(None, None),
149 format=None):
150 """Send query to the instrument, parse the output using format
151 and return the answer.
152
153 .. seealso:: TextualMixin.query and stringparser
154 """
155 ans = self.query(command, send_args=send_args, recv_args=recv_args)
156 if format:
157 parser = self.PARSERS.setdefault(format, ParseProcessor(format))
158 ans = parser(ans)
159 return ans

Callers 12

idnMethod · 0.45
idnMethod · 0.45
idnMethod · 0.45
frequencyMethod · 0.45
amplitudeMethod · 0.45
offsetMethod · 0.45
phaseMethod · 0.45
idnMethod · 0.45
frequencyMethod · 0.45
amplitudeMethod · 0.45
offsetMethod · 0.45
phaseMethod · 0.45

Calls 2

queryMethod · 0.95
ParseProcessorClass · 0.90

Tested by

no test coverage detected