wonambi.widgets.detect_dialogs module

Modal dialogs for carrying out automatic detections.

class wonambi.widgets.detect_dialogs.SWDialog(parent)[source]

Bases: ChannelDialog

Dialog for specifying SW detection parameters, ie: name, channel, stage, min dur, max dur, detection method, lowcut, highcut, minimum and maximum trough duration, maximum trough amplitude, minimum peak-to-peak amplitude.

name

name of event type (to be added to or created)

Type:

str

method

name of detection method

Type:

str

idx_method

Combo box of detection methods.

Type:

QComboBox

button_clicked(button)[source]

Action when button was clicked.

Parameters:

button (instance of QPushButton) – which button was pressed

create_dialog()[source]

Create the dialog.

update_values()[source]

Update form values when detection method is selected.

class wonambi.widgets.detect_dialogs.SpindleDialog(parent)[source]

Bases: ChannelDialog

Dialog for specifying spindle detection parameters, ie: name, channel, stage, lowcut, highcut, min dur, max dur, detection method, wavelet sigma, detection window, smoothing, detection threshold, selection threshold, minimum interval, merge across channels.

name

name of event type (to be added to or created)

Type:

str

method

name of detection method

Type:

str

idx_method

Combo box of detection methods.

Type:

QComboBox

button_clicked(button)[source]

Action when button was clicked.

Parameters:

button (instance of QPushButton) – which button was pressed

count_channels()[source]

If more than one channel selected, activate merge checkbox.

create_dialog()[source]

Create the dialog.

update_values()[source]

Update form values when detection method is selected.