tomwer.gui.control.reducedarkflatselector.ReduceDarkFlatSelectorTableWidget#
- class tomwer.gui.control.reducedarkflatselector.ReduceDarkFlatSelectorTableWidget(parent=None)#
Table widget used to register and select a list of reduces frames
- addReduceFrames(reduced_frames, selected=())#
Add the reduced frames in the interface.
- Parameters:
reduced_frames (
dict
) – frame index as key and numpy.ndarray as valueselected (
tuple
) – if the frame index is in selected tuple then this item will be automatically selected
- clear()#
- clearSelection()#
Uncheck any check Combobox found
- dragEnterEvent(self, a0: QDragEnterEvent | None)#
- dragMoveEvent(self, a0: QDragMoveEvent | None)#
- dropEvent(self, a0: QDropEvent | None)#
- getConfiguration()#
return configuration as a tuple of ‘reduced frames’. Each reduced_frames are provided with the following: * ‘reduce_frames_name’: str: name of the reduced frame * ‘reduce_frames’: tuple of dict for each reduce frame. This second dict contains: :rtype:
tuple
index: index of this frame in the acquisition
data: the reduce frame as a 2D array
selected: is the frame selected by the user
- getSelectedReduceFrames()#
Return the selected reduced frame as dict
- Return type:
dict
- static get_reduce_frames(url)#
try to guess location of darks / flats according to provided url. The idea is to be more robust if the user provide a file or an higher level data path
- Warning:
Return a tuple and not a dict. Because in the case the user provide an entry which contains a ‘darks’ and a flats’ groups we want to return both reduced_frames. And we cannot return them as a dict as they can have the same index - used as dict key
- Return type:
tuple
- popDictIndex()#
- Return type:
int
- setConfiguration(config)#
- sigActiveChanged#
Signal emit when the active frame changed (the one to be displayed)
- sigUpdated#
Signal emit when the table is updated
- supportedDropActions()#
Inherited method to redefine supported drop actions.