Skip to content

Commit

Permalink
change conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
bleykauf committed Sep 27, 2024
1 parent 36af66b commit c613dab
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions linien-server/linien_server/registers.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import numpy as np
import rpyc
from linien_common.common import MHz, convert_channel_mixing_value
from linien_common.common import MHz, Vpp, convert_channel_mixing_value
from linien_common.communication import LinienControlService
from linien_common.config import ACQUISITION_PORT, DEFAULT_SWEEP_SPEED
from linien_common.enums import FilterType
Expand Down Expand Up @@ -181,11 +181,11 @@ def write_registers(self):
and self.parameters.watch_lock.value
)
new[f"logic_relock_watcher_should_watch_{channel}"] = should_watch
new[f"logic_relock_watcher_min_{channel}"] = (
getattr(self.parameters, f"watch_lock_{channel}_min").value * 8191
new[f"logic_relock_watcher_min_{channel}"] = int(
getattr(self.parameters, f"watch_lock_{channel}_min").value * Vpp
)
new[f"logic_relock_watcher_max_{channel}"] = (
getattr(self.parameters, f"watch_lock_{channel}_max").value * 8191
new[f"logic_relock_watcher_max_{channel}"] = int(
getattr(self.parameters, f"watch_lock_{channel}_max").value * Vpp
)

if self.parameters.lock.value:
Expand Down

0 comments on commit c613dab

Please sign in to comment.