This is fine but you can use `parse_query` that allows you to query and parse robustly in the same line.
See for example: https://github.com/hgrecco/lantz/blob/master/lantz/drivers/aeroflex/a2023a.py#L107

But the way. Is there a way to know is the output is in Watt or Joules, because in that case you can use units.