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
pyqtProperty(type, fget=None, fset=None, freset=None, fdel=None, doc=None,

designable=True, scriptable=True, stored=True, user=False, constant=False, final=False, notify=None, revision=0) -> property attribute

type is the type of the property. It is either a type object or a string that is the name of a C++ type. freset is a function for resetting an attribute to its default value. designable sets the DESIGNABLE flag (the default is True for writable properties and False otherwise). scriptable sets the SCRIPTABLE flag. stored sets the STORED flag. user sets the USER flag. constant sets the CONSTANT flag. final sets the FINAL flag. notify is the NOTIFY signal. revision is the REVISION. The other parameters are the same as those required by the standard Python property type. Properties defined using pyqtProperty behave as both Python and Qt properties. Decorators can be used to define new properties or to modify existing ones.

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]