olaf.image_verification.button_handler

Classes

ButtonHandler

Module Contents

class olaf.image_verification.button_handler.ButtonHandler(root, folder_path, num_samples, includes)

Bases: olaf.image_verification.data_loader.DataLoader

Parameters:
  • root (tkinter.Tk)

  • folder_path (pathlib.Path)

  • num_samples (int)

  • includes (tuple)

num_samples
create_buttons()

Create buttons for each sample to increase or decrease the number of frozen wells :returns: None

Return type:

None

show_photo()

Function to display the current photo in the window and update the title with image name. This function is called when the window is first created and when the user navigates to the next or previous image. :returns: None

Return type:

None

_update_image(sample, change)

(Placeholder to) Update the number of frozen wells for the current image :param sample: which sample (column) to update, -1 for “Good” :param change: by what amount to change the sample frozen well value, :param -1 for decrease: :param 1 for increase.:

Returns:

None

Parameters:
  • sample (int)

  • change (int)

Return type:

None

_next_image()

Go to the next photo in the list. If there are no more photos, call the closing sequence. Otherwise, show the next photo. :returns: None

_prev_image()

Go to the previous photo in the list. If there are no photos to go back to, do nothing. :returns: None

Return type:

None

_display_num_frozen(pic_file_name)

(Placeholder to) Display the number of frozen wells for each sample in the current image. :param pic_file_name: name of the current image being rendered.

Returns:

None

Parameters:

pic_file_name (str)

Return type:

None

closing_sequence()

This function is automatically ran after the last image is reviewed and the GUI closes. Currently, it calls the save_data function from the DataLoader class. :returns: None

Return type:

None