indexed_value_table_model

A model for indexed parameter values, used by the parameter value editors.

authors:
  1. Soininen (VTT)
date:

18.6.2019

Module Contents

class indexed_value_table_model.IndexedValueTableModel(value, index_header, value_header)[source]

Bases: PySide2.QtCore.QAbstractTableModel

A base class for time pattern and time series models.

value[source]

a parameter value

Type:TimePattern, TimeSeriesFixedStep, TimeSeriesVariableStep
index_header

a header for the index column

Type:str
value_header

a header for the value column

Type:str
value[source]

Returns the parameter value associated with the model.

columnCount(self, parent=QModelIndex())[source]

Returns the number of columns which is two.

data(self, index, role=Qt.DisplayRole)[source]

Returns the data at index for given role.

headerData(self, section, orientation=Qt.Horizontal, role=Qt.DisplayRole)[source]

Returns a header.

reset(self, value)[source]

Resets the model.

rowCount(self, parent=QModelIndex())[source]

Returns the number of rows.