From 04cf612275e8cc417b5caa75d234df2473797775 Mon Sep 17 00:00:00 2001 From: Tomaz Hocevar Date: Mon, 30 Jul 2018 12:41:28 +0200 Subject: [PATCH] Make filters available in Orange.data namespace. --- Orange/data/__init__.py | 1 + Orange/data/filter.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Orange/data/__init__.py b/Orange/data/__init__.py index 9366c81f423..59ee07343e1 100644 --- a/Orange/data/__init__.py +++ b/Orange/data/__init__.py @@ -7,3 +7,4 @@ from .storage import * from .table import * from .io import * +from .filter import * diff --git a/Orange/data/filter.py b/Orange/data/filter.py index a199b20d17a..8809e6435d0 100644 --- a/Orange/data/filter.py +++ b/Orange/data/filter.py @@ -12,6 +12,11 @@ from Orange.util import Enum +__all__ = ["IsDefined", "HasClass", "Random", "SameValue", "Values", + "FilterDiscrete", "FilterContinuous", "FilterString", + "FilterStringList", "FilterRegex"] + + class Filter(Reprable): """ The base class for filters.