Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 31, 2023
1 parent f9804e6 commit e18acd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions yaqd_mcc/_mcc_ulw_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def __init__(self, name, config, config_filepath):
self._channel_names = [c.name for c in self._channels]
self._channel_units = {k: "V" for k in self._channel_names}
from mcculw import ul

ul.ignore_instacal()
devices = ul.get_daq_device_inventory(InterfaceType.ANY)
if self._config["serial"]:
Expand All @@ -37,11 +38,13 @@ def __init__(self, name, config, config_filepath):
else:
ul.create_daq_device(0, devices[0])
from mcculw.device_info import DaqDeviceInfo

info = DaqDeviceInfo(board_num)
self._ai_info = info.get_ai_info()

async def _measure(self):
from mcculw import ul

out = dict()
for c in self._channels:
ai_range = self._ai_info.supported_ranges[c.index]
Expand Down

0 comments on commit e18acd9

Please sign in to comment.