How to add filter position to metadata

16 views
Skip to first unread message

eac...@columbia.edu

unread,
Nov 30, 2017, 4:14:14 PM11/30/17
to xpd-users
Chris came up with a code snippet for tracking filter use in the .yml files and I found it very useful at the most recent beamtime. Here's how to use it:

1. Copy/paste this function definition while in xpdui
2. Give xrun a "filters" kwarg: xrun(0, 0, filters=filter_positions())

This will add a line in your metadata: for example, if only filter 4 is in use, it will add:

filters: {flt1: Out, flt2: Out, flt3: Out, flt4: In}

Christopher Wright

unread,
Dec 21, 2017, 12:13:58 PM12/21/17
to xpd-users
Reply all
Reply to author
Forward
0 new messages