mne_videobrowser.browsers.RawBrowserManager#

class mne_videobrowser.browsers.RawBrowserManager(raw_browser: RawBrowserInterface, raw: Raw, selector_padding=0.1, default_selector_position=0.5, parent: QObject | None = None)[source]#

Bases: SyncableBrowserObject

Manager for raw browser instance tailored for time syncing with video.

Provides methods for manipulating the view and adds a ‘time selector’ (vertical line) that marks the time point used for syncing with video. Emits signal when the selected time is changed.

Parameters:
  • raw_browser (RawBrowserInterface) – The raw browser to manage wrapped in RawBrowserInterface.

  • raw (mne.io.Raw) – The raw data object being displayed in the browser.

  • selector_padding (float, optional) – Padding (in seconds) to apply when clamping the time selector to the current view range of the raw data browser, by default 0.1

  • default_selector_position (float, optional) – The default relative position of the time selector in the raw data browser’s view, given as a fraction between 0 and 1, by default 0.5

  • parent (QObject, optional) – The parent QObject for this manager, by default None

Methods

blockSignals(self, b, /)

childEvent(self, event, /)

children(self, /)

connect(...)

connectNotify(self, signal, /)

customEvent(self, event, /)

deleteLater(self, /)

disconnect(...)

disconnectNotify(self, signal, /)

dumpObjectInfo(self, /)

dumpObjectTree(self, /)

dynamicPropertyNames(self, /)

emit(self, signal, /, *args)

event(self, event, /)

eventFilter(self, watched, event, /)

findChild(self, type, /[, name, options])

findChildren() -> List[~PlaceholderType] ))

get_current_position(media_idx)

Get the current position in the raw data as a sample index.

hide_browser()

Hide the raw data browser.

inherits(self, classname, /)

installEventFilter(self, filterObj, /)

isQuickItemType(self, /)

isSignalConnected(self, signal, /)

isWidgetType(self, /)

isWindowType(self, /)

jump_to_end(media_idx[, signal])

Set browser's view and time selector to the end of the data.

jump_to_start(media_idx[, signal])

Set browser's view and time selector to the beginning of the data.

killTimer(-> None)

metaObject(self, /)

moveToThread(self, thread, /)

objectName(self, /)

parent(self, /)

pause_playback()

Pause playback of the currently playing media.

property(self, name, /)

receivers(self, signal, /)

removeEventFilter(self, obj, /)

sender(self, /)

senderSignalIndex(self, /)

setObjectName(self, name, /)

setParent(self, parent, /)

setProperty(self, name, value, /)

set_position(position_idx, media_idx[, signal])

Set the current position for the raw data browser.

set_sync_status(status, media_idx)

Set the synchronization status for the specified media.

show_browser()

Show the raw data browser.

signalsBlocked(self, /)

startTimer(self, interval, /[, timerType])

start_playback(media_idx)

Start playing the specified media.

thread(self, /)

timerEvent(self, event, /)

tr(self, sourceText, /[, disambiguation, n])

Attributes

is_playing

Return whether the media is currently playing.

staticMetaObject

set_position(position_idx: int, media_idx: int, signal: bool = True) bool[source]#

Set the current position for the raw data browser.

Parameters:
  • position_idx (int) – The sample index in the raw data to set the position to.

  • media_idx (int) – Ignored.

  • signal (bool, optional) – Whether to emit sigPositionChanged signal, by default True.

Returns:

True if the position was set successfully, False if the position index is out of bounds.

Return type:

bool

jump_to_start(media_idx: int, signal: bool = True) None[source]#

Set browser’s view and time selector to the beginning of the data.

jump_to_end(media_idx: int, signal: bool = True) None[source]#

Set browser’s view and time selector to the end of the data.

get_current_position(media_idx: int) int[source]#

Get the current position in the raw data as a sample index.

show_browser() None[source]#

Show the raw data browser.

hide_browser() None[source]#

Hide the raw data browser.

staticMetaObject = PySide6.QtCore.QMetaObject("RawBrowserManager" inherits "SyncableBrowserObject": Methods:   #6 type=Slot, signature=_handle_time_selector_change()   #7 type=Slot, signature=_handle_time_range_change(PyObject), parameters=PyObject )#