You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
XPD has a set of four filters for attenuating the beam intensity. It would be nice to simulate this so we could create automated exposure algorithms.
Potential design:
Similar to the shutter, have the detector take in a filter object which will manage the filters
If there is a filter object then get the attenuation factor from the filters (which will depend on the filter positions).
Multiply the image by the attenuation factor
Expected work:
Build a filter object with a similar API to the filters here. This will require making 5 objects (4 filters, which have all the methods specified here except for maybe stop, and a 5th object combining them all). The filters will need to take in an argument which specifies how much it attenuates the beam. The composite will need to take these and multiply them together to create the effective attenuation.
Add a kwarg (key word argument see Scopatz and Huff p. 99) for the composite filter. Default it to None.
Change how the trigger works, if the kwarg is None do not get the attenuation factor when triggering the detector, otherwise use the get_attenuation method on the filters to attenuate the image data. This may require a design refactor where these steps are done sequentially. eg
Get the image from disk (this one is already done)
If the shutter is down zero the image (or maybe check it first and then load the image?)
Use the filters to attenuate the image
Additional information needed:
Need to take a good guess or ask the beamline scientists how much each of the filters attenuate the beam.
The text was updated successfully, but these errors were encountered:
XPD has a set of four filters for attenuating the beam intensity. It would be nice to simulate this so we could create automated exposure algorithms.
Potential design:
Expected work:
None
do not get the attenuation factor when triggering the detector, otherwise use theget_attenuation
method on the filters to attenuate the image data. This may require a design refactor where these steps are done sequentially. egAdditional information needed:
The text was updated successfully, but these errors were encountered: