fix: propagate config through daq
CI / lint (push) Failing after 1m3s
CI / lint (pull_request) Failing after 1m14s
CI / test (3.13) (pull_request) Failing after 1m37s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Failing after 1m37s
CI / test (3.14) (pull_request) Canceled after 1m39s
CI / test (3.12) (pull_request) Canceled after 1m40s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Canceled after 1m42s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Canceled after 1m45s
CI / test-with-coverage (pull_request) Failing after 1m53s
CI / coverage-analysis (pull_request) Skipped
Docs build and publish / docker (push) Successful in 9s
CI / test (3.13) (push) Failing after 1m15s
CI / test (3.12) (push) Failing after 1m19s
CI / test (3.14) (push) Canceled after 59s
CI / coverage-analysis (push) Canceled after 0s
Build and Publish / release (push) Successful in 47s
CI / test-with-beamline-plugins (pxi_bec) (push) Canceled after 1m5s
CI / test-with-beamline-plugins (pxiii_bec) (push) Canceled after 1m3s
CI / test-with-beamline-plugins (pxii_bec) (push) Canceled after 1m6s
CI / test-with-coverage (push) Canceled after 1m4s
CI / lint (push) Failing after 1m3s
CI / lint (pull_request) Failing after 1m14s
CI / test (3.13) (pull_request) Failing after 1m37s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Failing after 1m37s
CI / test (3.14) (pull_request) Canceled after 1m39s
CI / test (3.12) (pull_request) Canceled after 1m40s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Canceled after 1m42s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Canceled after 1m45s
CI / test-with-coverage (pull_request) Failing after 1m53s
CI / coverage-analysis (pull_request) Skipped
Docs build and publish / docker (push) Successful in 9s
CI / test (3.13) (push) Failing after 1m15s
CI / test (3.12) (push) Failing after 1m19s
CI / test (3.14) (push) Canceled after 59s
CI / coverage-analysis (push) Canceled after 0s
Build and Publish / release (push) Successful in 47s
CI / test-with-beamline-plugins (pxi_bec) (push) Canceled after 1m5s
CI / test-with-beamline-plugins (pxiii_bec) (push) Canceled after 1m3s
CI / test-with-beamline-plugins (pxii_bec) (push) Canceled after 1m6s
CI / test-with-coverage (push) Canceled after 1m4s
This commit was merged in pull request #252.
This commit is contained in:
1 parent
a33189e738
commit
379f439f35
4 files changed
+3
-36
No files matched your search
@@ -1,21 +0,0 @@
|
||||
from aarecommon.config.beamline import mx_beamline
|
||||
|
||||
from aare.daq.aaredb import AareWrapper
|
||||
from aare.daq.config import BeamlineConfig
|
||||
from aare.daq.daq import AareDAQ
|
||||
from aare.daq.devices import BeamlineDevices
|
||||
from aare.devices.jfjoch import JFJochWrapper
|
||||
|
||||
bl = mx_beamline()
|
||||
j = JFJochWrapper(bl)
|
||||
a = AareWrapper(bl)
|
||||
c = BeamlineConfig(bl)
|
||||
d = BeamlineDevices(bl)
|
||||
daq = AareDAQ(bl=bl, cfg=c)
|
||||
result = j.wait_till_done(60)
|
||||
a.ingest_scan(
|
||||
sample=c.current_sample,
|
||||
result=result,
|
||||
geom=daq.sample_geometry,
|
||||
beam_mark_pxl=c.get_beam_mark(d.zoom),
|
||||
)
|
||||
+1
-1
@@ -291,7 +291,7 @@ class AareDAQ:
|
||||
self.last_time = 0.0
|
||||
self._dispatch = dispatch
|
||||
self._cfg = cfg
|
||||
self._devs = BeamlineDevices(bl, dispatch)
|
||||
self._devs = BeamlineDevices(bl, dispatch, cfg)
|
||||
self._mlbox = MlBox(bl)
|
||||
self._jfjoch = JFJochWrapper(bl)
|
||||
self._bl = bl.value.upper()
|
||||
|
||||
@@ -375,16 +375,3 @@ class BeamlineDevices:
|
||||
|
||||
def read_current_state_from_bec(self) -> BeamlineStateEnum:
|
||||
return self.bec_worker.read_current_state()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from aarecommon.config.beamline import mx_beamline
|
||||
|
||||
beamline = mx_beamline()
|
||||
devs = BeamlineDevices(beamline)
|
||||
devs.bec_worker.scilog_msg(
|
||||
message="Testing DAQ hijack of BEC sci log communication channel", color="blue"
|
||||
)
|
||||
# devs.aerotech_pos = Coordinate(x=124.0, y=1.0, z=1.0)
|
||||
# print(devs.aerotech_pos)
|
||||
# devs.aerotech_omega = 0.0
|
||||
@@ -3,6 +3,7 @@ import time
|
||||
from aarecommon.config.logger import setup_logger
|
||||
from aarecommon.models.models import SampleCameraSettings
|
||||
|
||||
from aare.beamline_dispatch.beamline_dispatch import get_beamline_dispatch
|
||||
from aare.daq.config import ABR_OMEGA_MOUNT, ABR_POS_MOUNT, BeamlineConfig
|
||||
from aare.daq.devices import BeamlineDevices
|
||||
from aare.devices.area_detector import AutoEnum
|
||||
@@ -284,7 +285,7 @@ if __name__ == "__main__":
|
||||
|
||||
beamline = mx_beamline()
|
||||
config = BeamlineConfig(beamline)
|
||||
devices = BeamlineDevices(beamline)
|
||||
devices = BeamlineDevices(beamline, get_beamline_dispatch(), config)
|
||||
common_2rse(devices, config)
|
||||
time.sleep(10.0)
|
||||
rse2sa(devices, config)
|
||||
Reference in new issue
Block a user