diff --git a/statapp/combo_delegate.py b/statapp/combo_delegate.py index 5ca262f..aa7b05e 100644 --- a/statapp/combo_delegate.py +++ b/statapp/combo_delegate.py @@ -27,12 +27,12 @@ class ComboDelegate(QItemDelegate): A delegate that places a fully functioning QComboBox in every cell of the column to which it's applied """ - def __init__(self, parent, objects, object_names): + def __init__(self, parent, objects, objectNames): """ Constructoe :param parent: QTableView parent object :param objects: List of objects to set. i.e. [True, False] - :param object_names: List of Object names to display. i.e. ['True', 'False'] + :param objectNames: List of Object names to display. i.e. ['True', 'False'] """ QItemDelegate.__init__(self, parent) @@ -40,7 +40,7 @@ class ComboDelegate(QItemDelegate): self.objects = objects # object description to display in the combobox. i.e. ['True', 'False'] - self.object_names = object_names + self.objectNames = objectNames @QtCore.Slot() def currentIndexChanged(self): @@ -48,7 +48,7 @@ class ComboDelegate(QItemDelegate): def createEditor(self, parent, option, index): combo = QComboBox(parent) - combo.addItems(self.object_names) + combo.addItems(self.objectNames) combo.currentIndexChanged.connect(self.currentIndexChanged) return combo diff --git a/statapp/models/transform_polynom_model.py b/statapp/models/transform_polynom_model.py index 9bce9de..0568585 100644 --- a/statapp/models/transform_polynom_model.py +++ b/statapp/models/transform_polynom_model.py @@ -37,6 +37,7 @@ TRANSFORMS = { class TransformPolynomModel(RegressionResultModel, EditableTableModel): def __init__(self, result): + self._monomials = None super().__init__(result) n = result.paramsAndImportance.shape[0]