tomwer.gui.edit.nxtomoeditor.NXtomoEditor#

class tomwer.gui.edit.nxtomoeditor.NXtomoEditor(parent=None, hide_lockers=True)#

Widget to edit a set of field from a NXtomo. The preliminary goal is to let the user define pixel / voxel position and x and z positions in order to simplify stitching down the line

As energy and field of view was also often requested this part is also editable.

Each field contains a widget to define it values and a LockButton. The LockButton can be used to automate the processing.

When the scan to edit is set each field widget will be updated at the condition the field is not locked. Else existing value will be kept.

clear()#
Return type:

None

getConfiguration()#

Return a dict with field full name as key and a tuple as value (field_value, is_locked)

limitation: for now sample position are not handled because this is a ‘corner case’ for now

Return type:

dict

getConfigurationForTask()#

default configuration is stored as field: (field_value, filed_is_locked) when the task expects field_key: field_value Because we need to be able to reload settings of the LockButton. But the task doesn’t care about it. She only want to know which field must be edited. So we need to filter the dict value.

Return type:

dict

getEditableWidgets()#
getScan()#
Return type:

NXtomoScan | None

hasLockField()#

return True if the widget has at least one lock field

Return type:

bool

hideLockers(hide)#
Return type:

None

setConfiguration(config)#
Return type:

None

setScan(scan)#
Return type:

None

sigEditingFinished#

emit when edition is finished

update_tree()#
Return type:

None