|
78 | 78 | LinearGradient, logger, cached_property, data_frac_digits, |
79 | 79 | num_int_digits) |
80 | 80 | from larray_editor.arrayadapter import (get_adapter, get_adapter_creator, |
81 | | - AbstractAdapter, AbstractPathAdapter, |
82 | | - MAX_FILTER_OPTIONS) |
| 81 | + AbstractAdapter, MAX_FILTER_OPTIONS) |
83 | 82 | from larray_editor.arraymodel import (HLabelsArrayModel, VLabelsArrayModel, LabelsArrayModel, |
84 | 83 | AxesArrayModel, DataArrayModel) |
85 | 84 | from larray_editor.combo import FilterComboBox, CombinedSortFilterMenu |
@@ -135,7 +134,7 @@ def reset_to_defaults(self): |
135 | 134 | data_adapter = self.array_widget.data_adapter |
136 | 135 | if data_adapter is None: |
137 | 136 | return |
138 | | - assert isinstance(data_adapter, (AbstractAdapter, AbstractPathAdapter)), \ |
| 137 | + assert isinstance(data_adapter, AbstractAdapter), \ |
139 | 138 | f"unexpected data_adapter type: {type(data_adapter)}" |
140 | 139 | filter_names = data_adapter.get_filter_names() |
141 | 140 | # size > 0 to avoid arrays with length 0 axes and len(axes) > 0 to avoid scalars (scalar.size == 1) |
@@ -1231,6 +1230,7 @@ def activate_cell(self, index: QModelIndex): |
1231 | 1230 | return True |
1232 | 1231 | return False |
1233 | 1232 |
|
| 1233 | + |
1234 | 1234 | class ScrollBar(QScrollBar): |
1235 | 1235 | """ |
1236 | 1236 | A specialised scrollbar. |
|
0 commit comments