def current_is_data_item(self):
        current = self.filterTreeWidget.currentItem()
        return current is not None and \
            current.data(1, Qt.UserRole) != self.FilterTreeRoleTop
Returns if the currently selected item is a filter or a filter
dataset/ETHPy150Open rproepp/spykeviewer/spykeviewer/ui/filter_dock.py/FilterDock.current_is_data_item