DAQ: updates to spreadhseet and tell updater

This commit is contained in:
2026-01-22 12:21:10 +01:00
parent 4fd81855a5
commit aab3eb2cfe
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import time
from aareDBclient.models import PuckWithTellPosition
from aare.common.models import SampleShortInfoList, SampleShortInfo, DewarAddress
from config import BeamlineConfig
from aare.common.beamline import MXBeamline
from aare.common.beamline import MXBeamline, mx_beamline
SLOT_IDENTIFIER = "X10SA"
WS_URL = f"wss://mx-db-01.psi.ch/dispatcher/protected_router/tell_runner/ws/samples-spreadsheet/{SLOT_IDENTIFIER}"
@@ -16,7 +16,7 @@ if not password:
raise ValueError("The AAREDB_SHARED_PASSWORD environment variable is not set.")
WS_HEADERS = [f"X-Shared-Password: {password}"]
beamline = MXBeamline.X10SA
beamline = mx_beamline().value()
config = BeamlineConfig(bl=beamline)
# Cache the current spreadsheet for change detection
+1 -1
View File
@@ -20,7 +20,7 @@ WS_HEADERS = [f"X-Shared-Password: {os.getenv('AAREDB_SHARED_PASSWORD')}"]
print(WS_HEADERS)
# Initialize TELL client and DB wrapper
beamline = mx_beamline() # Use your beamline enum/value
beamline = mx_beamline().value() # Use your beamline enum/value
tell_client = TellClient(bl=beamline)
aare_db = AareWrapper(bl=beamline)