Skip to content

Commit

Permalink
Remove dependency on removed UnitToRead enum.
Browse files Browse the repository at this point in the history
  • Loading branch information
wvreeven committed Aug 23, 2024
1 parent b65b4f6 commit 6ce2af4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions doc/news/DM-45930.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove dependency on removed UnitToRead enum.
5 changes: 1 addition & 4 deletions python/lsst/ts/observatory/control/base_calsys.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

import yaml
from lsst.ts import salobj
from lsst.ts.xml.enums.Electrometer import UnitToRead

from .remote_group import RemoteGroup
from .utils import get_data_path
Expand Down Expand Up @@ -87,15 +86,13 @@ async def setup_electrometers(
integration_time : `float`
Electrometer measurement range.
"""
electrometer_mode = getattr(UnitToRead, mode).value

for electrometer in [
getattr(self.rem, component_name)
for component_name in self.components_attr
if "electrometer" in component_name
]:
await electrometer.cmd_setMode.set_start(
mode=electrometer_mode,
mode=mode,
timeout=self.long_timeout,
)
await electrometer.cmd_setRange.set_start(
Expand Down

0 comments on commit 6ce2af4

Please sign in to comment.