diff --git a/activity_browser/ui/tables/impact_categories.py b/activity_browser/ui/tables/impact_categories.py index c74eb93cd..a93c68e4e 100644 --- a/activity_browser/ui/tables/impact_categories.py +++ b/activity_browser/ui/tables/impact_categories.py @@ -255,17 +255,17 @@ def __init__(self, parent=None): super().__init__(parent) self.model = MethodCharacterizationFactorsModel(parent=self) self.setVisible(False) - self.setItemDelegateForColumn(2, FloatDelegate(self)) - self.setItemDelegateForColumn(4, UncertaintyDelegate(self)) - self.setItemDelegateForColumn(6, FloatDelegate(self)) + self.setItemDelegateForColumn(3, FloatDelegate(self)) + self.setItemDelegateForColumn(5, UncertaintyDelegate(self)) self.setItemDelegateForColumn(7, FloatDelegate(self)) self.setItemDelegateForColumn(8, FloatDelegate(self)) self.setItemDelegateForColumn(9, FloatDelegate(self)) self.setItemDelegateForColumn(10, FloatDelegate(self)) + self.setItemDelegateForColumn(11, FloatDelegate(self)) self.model.updated.connect(self.update_proxy_model) self.model.updated.connect(self.set_filter_data) - self.model.updated.connect(lambda: self.setColumnHidden(5, True)) + self.model.updated.connect(lambda: self.setColumnHidden(6, True)) self.read_only = True self.setAcceptDrops(not self.read_only) diff --git a/activity_browser/ui/tables/models/impact_categories.py b/activity_browser/ui/tables/models/impact_categories.py index 9a332d558..0753303fc 100644 --- a/activity_browser/ui/tables/models/impact_categories.py +++ b/activity_browser/ui/tables/models/impact_categories.py @@ -295,8 +295,8 @@ def search_tree(tree: dict, query: str, matches: int = 0) -> (dict, int): class MethodCharacterizationFactorsModel(EditablePandasModel): - COLUMNS = ["name", "categories", "amount", "unit"] - HEADERS = ["Name", "Category", "Amount", "Unit", "Uncertainty"] + ["cf"] + COLUMNS = ["name", "categories", "database", "amount", "unit"] + HEADERS = ["Name", "Category", "Database", "Amount", "Unit", "Uncertainty"] + ["cf"] UNCERTAINTY = ["loc", "scale", "shape", "minimum", "maximum"] def __init__(self, parent=None):