ibllib.qc.task_qc_viewer.ViewEphysQC

An interactive PyQT QC data frame.

Functions

viewqc

Classes

DataFrameModel

GraphWindow

PlotCanvas

PlotWindow

class DataFrameModel(df=Empty DataFrame Columns: [] Index: [], parent=None)[source]

Bases: QAbstractTableModel

DtypeRole = 1256
ValueRole = 1257
setDataFrame(dataframe)[source]
dataFrame
headerData(self, section: int, orientation: Qt.Orientation, role: int = Qt.ItemDataRole.DisplayRole) Any[source]
rowCount(self, parent: QModelIndex = QModelIndex()) int[source]
columnCount(self, parent: QModelIndex = QModelIndex()) int[source]
data(self, index: QModelIndex, role: int = Qt.ItemDataRole.DisplayRole) Any[source]
roleNames(self) Dict[int, QByteArray][source]
sort(col, order)[source]

Sort table by given column number.

Parameters:
  • col – the column number selected (between 0 and self._dataframe.columns.size)

  • order – the order to be sorted, 0 is descending; 1, ascending

Returns:

class PlotCanvas(parent=None, width=5, height=4, dpi=100, wheel=None)[source]

Bases: FigureCanvasQTAgg

class PlotWindow(parent=None, wheel=None)[source]

Bases: QWidget

class GraphWindow(parent=None, wheel=None)[source]

Bases: QWidget

load_file()[source]
update_df(df)[source]
tv_double_clicked()[source]
viewqc(qc=None, title=None, wheel=None)[source]