Storage widgets

Widgets visualizing data storage.

class ceed.storage.storage_widgets.LogWidgetBase(data_storage=None, **kwargs)

Bases: object

Base class for log items displayed in the GUI.

image_widget = None

Widget that shows an image.

save_time

The time the item was saved.

notes

Any notes associated with the item.

image

The image object recorded in the log item, if any.

data_storage = None

The CeedDataWriterBase used by Ceed.

show_image(*largs)

Displays the image in the log item.

class ceed.storage.storage_widgets.StageLogWidget(data_storage=None, **kwargs)

Bases: ceed.storage.storage_widgets.LogWidgetBase, ceed.graphics.ShowMoreBehavior, kivy.uix.boxlayout.BoxLayout

Log item representing a recorded experiment.

experiment_number

The experiment number as saved in the file.

stage

The name of the stage used in the experiment.

duration_frames

The number of frames in the experiment.

duration_sec

The duration of the experiment.

config

The app config used for the experiment.

config_str

String representation of the config.

mea_config

String representation of mea_transform used in the experiment.

mea_config_different

Whether the mea_transform used in this experiment is different from the next experiment, or app if it’s the last.

refresh_metadata()

Updates the instance properties from the saved data.

update_text(text)

Updates the notes from the GUI.

class ceed.storage.storage_widgets.ImageLogWidget(data_storage=None, **kwargs)

Bases: ceed.storage.storage_widgets.LogWidgetBase, ceed.graphics.ShowMoreBehavior, kivy.uix.boxlayout.BoxLayout

Log item representing a recorded image from the player.

image_num

The number of the image as saved in the file.

class ceed.storage.storage_widgets.ExperimentLogWidget(**kwargs)

Bases: kivy.uix.boxlayout.BoxLayout

Displays data associated with all the experiments.

data_storage: ceed.storage.controller.CeedDataWriterBase = None

The CeedDataWriterBase used by Ceed.

num_images

The number of images recorded to the file.

log_text

The text logged to the file.

log_container = None

Widget that displays the logs.

config_str

The yaml encoded string containing the current app Ceed config data.

mea_config

String representation of the mea configuration matrix mea_transform.

experiment_names

List of all the names of the experiments run so far. The names are how they are stored in the file.

selected_config_str

The yaml encoded string containing the Ceed config data of the experiment or app selected in the GUI.

selected_mea_config_str

String representation of the mea configuration matrix mea_transform of the experiment or app selected in the GUI.

bind_to_current_config_selection(name)

Binds and tracks the config of the given experiment or app and shows it in the GUI.

experiment_change_callback(instance, name, value)

Called in response to any data related changes (experiment started/finished, image saved, etc.) and updates the GUI to show the new data.

handle_open_file()

Updates GUI when a new data file is opened.

mark_experiments_with_changed_config()

Visually points out in the data log any experiment whose mea-related config is different than the previous experiment. This helps the user know if they need to backport mea config changes that happened during an experiment to the experiment after it is done.

format_config(config)

Converts the config into a yaml-encoded string and the mea config to a string showing the matrix.

copy_mea_config_to_exp(source, target)

Copies the mea config values from one experiment to another.