Commit 33fa0a94 authored by Henri Payno's avatar Henri Payno
Browse files

_get_electric_current: improve doc

parent 92dc5d8a
Pipeline #74471 passed with stages
in 3 minutes and 18 seconds
......@@ -494,11 +494,12 @@ class BaseAcquisition:
except (ValueError, KeyError):
pass
else:
# handle special case: elec_current is sometime a list and sometime a number...
# handle case where elec_current is a scalar. Cast it to list before return
if isinstance(elec_current, numpy.number):
elec_current = [
elec_current,
]
return elec_current, unit
else:
_logger.warning(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment