Skip to content

Refactored code & added energy-based XAS Scans - #71

Open
subughimire420 wants to merge 1 commit into
mainfrom
refactor_scans
Open

Refactored code & added energy-based XAS Scans#71
subughimire420 wants to merge 1 commit into
mainfrom
refactor_scans

Conversation

@subughimire420

@subughimire420 subughimire420 commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

After re-factoring the code, plans need to be called with detectors identified:
One panda, One sequnce table:

  • bc.plans.seq_table(start = 1, stop = 10, stepsize = 1, time_per_point = 0.5, motor = bc.devices.turbo_slit_x, add_sweep_triggers=True, number_of_sweeps= 8, detectors = [[bc.devices.panda1,1]])

Panda1 with 2 sequence tables, and Panda2 with one sequnce table:

  • bc.plans.seq_table(start = 1, stop = 10, stepsize = 1, time_per_point = 0.5, motor = bc.devices.turbo_slit_x, add_sweep_triggers=True, number_of_sweeps= 8, detectors = [[bc.devices.panda1,2],[bc.devices.panda2, 1])

Likewise other seq-table related scans have the same method of defining which detector to use, and how many sequence tables it has:

  • bc.plans.seq_non_linear(ei=6000.0, ef=10000.0, de=100.0, duration=0.25, detectors=[[bc.devices.panda1,1]])

Also, added energy based XAS scan:

  • bc.plans.xas_scan(element = "Mn", edge = "K", duration = 0.1, detectors=[[bc.devices.panda1, 1]])

@subughimire420 subughimire420 changed the title Refactored code Refactored code & added energy-based XAS Scans Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant