Files
AareDAQ/scripts/demo_scan_ingest.py
T
perl_d f475ead8de
Build and Publish / test (pull_request) Failing after 1m15s
Build and Publish / build (pull_request) Skipped
Build and Publish / Build and Deploy Docs (pull_request) Skipped
refactor: use aarecommon and remove common
2026-07-06 11:49:29 +02:00

24 lines
683 B
Python

from aarecommon.config.beamline import mx_beamline
from aarecommon.math.diffraction_geometry import DiffractionGeometry
from aarecommon.models.beamline import MXBeamline
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),
)