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:
SyncableBrowserObjectManager 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 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 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_playingReturn whether the media is currently playing.
- set_position(position_idx: int, media_idx: int, signal: bool = True) bool[source]#
Set the current position for the raw data browser.
- Parameters:
- Returns:
True if the position was set successfully, False if the position index is out of bounds.
- Return type:
- 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.
- 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 )#