tomwer.gui.utils.vignettes.VignettesWidget#

class tomwer.gui.utils.vignettes.VignettesWidget(parent=None, value_name='value', score_name='score', with_spacer=True, value_format=None, score_format=None, colormap=None)#

Widget to display all the frames.

Parameters:
  • parent

  • value_name – name of the values for which we are looking for the best one

  • score_name – name of the score computed

  • score_format – None or str that can be formatted to display the score

  • value_format – None or str that can be formatted to display the value

DEFAULT_PLOT_PER_ROW = 2#
MAX_NB_COLUMN = 999999#
clearVignettes()#
close(self) bool#
getNElementsPerRow()#
getScores()#

Return currently displayed scores as (scores, scores_method)

Return type:

tuple

selectedValue()#
setNElementsPerRow(n, force_update)#
setScores(scores, score_method)#

Expect a dictionary with possible values to select as key and (2D numpy.array, score) as value. Where the 2D numpy.array is the frame to display and the score if the “indicator” score to display with the frame. :type scores: dict :param scores: with score as key and a tuple (url|numpy array, ComputedScore) as value :param ScoreMethod score_method: score kind to be display