Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content

Simple XAS scan example

appel_c requested to merge feat/example_scan_mono_bragg into main

Summary

This MR adds a first draft for the simple XAS scan.

Changes

  • minor refactoring of the monobragg device class
  • Add XAS scan draft.
  • Added .PROC to all buttons with put_complete=True. This should ensure more stability

Additional comments

I believe the current example could be easily extended to also acommodate the advanced scan mode for XAS. Either by having a second similar scan or extending the current one with an option to choose the mode. Could also be worthwhile to create a base class, since setting up different scan modes could share quite some logic.

Definition of done

  • Test device at beamline after refactoring, test scan
  • Add on_complete method to the device to stop the scan. FYI, consider a stop_scan function that could be exposed to a GUI to interrupt a scan (desired mode of operation for scans with infinite mode)
  • Add progress update from device, for instance from the remaining scan time (this could be refactored to become number of full spectra on the controller side)
  • Improve documentation of classes (review docstrings)
Edited by appel_c

Merge request reports

Loading