tomwer.gui.samplemoved.SampleMovedWidget#
- class tomwer.gui.samplemoved.SampleMovedWidget(parent=None, backend=None)#
Widget used to display two images with different color channel. The goal is to see if the sample has moved during acquisition.
- CONFIGURATIONS = {'0-0(1)': (('0', '0.0', 0), ('0(1)', '0.0 (1)')), '180-180(1)': (('180', '180.0', 180), ('180(1)', '180.0 (1)')), '270-270(1)': (('270', '270.0', 270), ('270(1)', '270.0 (1)')), '360-0': (('360', '360.0', 360), ('0', '0.0')), '90-90(1)': (('90', '90.0', 90), ('90(1)', '90.0 (1)'))}#
Define possible configurations for comparison. Key is the name of the configuration, value contains a couple valid values for the necessary two projections
- clear()#
- clearOnLoadActions()#
- getControlWidget()#
- property scan#
- setConfiguration(config)#
- setImages(images)#
Set the images in a key value system. Key should be in (0, 90, 180, 270) and the value should be the image.
images value can be str (path to the file) or data
- Parameters:
images – images to set. key is index or file name, value the image.
- setOnLoadAction(action)#
- setScan(scan)#