wonambi.bin.scroll_data module

class wonambi.bin.scroll_data.MainWindow[source]

Bases: QMainWindow

Create an instance of the main window.

about()[source]
closeEvent(event)[source]

save the name of the last open dataset.

refresh()[source]

Functions to re-run once settings have been changed.

reset()[source]

Remove all the information from previous dataset before loading a new dataset.

show_analysis_dialog()[source]

Create the analysis dialog.

show_event_analysis_dialog()[source]

Create the event analysis dialog.

show_export_dataset_dialog()[source]

Create the dataset export dialog.

show_export_events_dialog()[source]

Create the events export dialog.

show_merge_dialog()[source]

Create the event merging dialog.

show_plot_dialog()[source]

Create the plot frame widget.

show_settings()[source]

Open the Setting windows, after updating the values in GUI.

show_slow_wave_dialog()[source]

Create the SW detection dialog.

show_spindle_dialog()[source]

Create the spindle detection dialog.

update()[source]

Once you open a dataset, it activates all the widgets.

value(parameter, new_value=None)[source]

This function is a shortcut for any parameter. Instead of calling the widget, its config and its values, you can call directly the parameter.

Parameters:
  • parameter (str) – name of the parameter of interest

  • new_value (str or float, optional) – new value for the parameter

Returns:

str or float – if you didn’t specify new_value, it returns the current value.

Notes

It’s important to maintain an organized dict in DEFAULTS which has to correspond to the values in the widgets, also the name of the widget. DEFAULTS is used like a look-up table.

wonambi.bin.scroll_data.main()[source]