Edit on GitHub

common.lib.fourcat_module

4CAT Module superclass for DataSets and BasicProcessors

 1"""
 24CAT Module superclass for DataSets and BasicProcessors
 3"""
 4import abc
 5
 6
 7class FourcatModule(metaclass=abc.ABCMeta):
 8    """
 9    4CAT Module superclass
10
11    `DataSet` and `BasicProcessor` descend from this class. This superclass is
12    intended primarily to contain functionality that allows one to check
13    compatibility between datasets and processors, and processors and other
14    processors, agnostic of whether the object being checked is a dataset or
15    processor. This reduces boilerplate code in `is_compatible_with` methods
16    in processors.
17    """
18    pass
class FourcatModule:
 8class FourcatModule(metaclass=abc.ABCMeta):
 9    """
10    4CAT Module superclass
11
12    `DataSet` and `BasicProcessor` descend from this class. This superclass is
13    intended primarily to contain functionality that allows one to check
14    compatibility between datasets and processors, and processors and other
15    processors, agnostic of whether the object being checked is a dataset or
16    processor. This reduces boilerplate code in `is_compatible_with` methods
17    in processors.
18    """
19    pass

4CAT Module superclass

DataSet and BasicProcessor descend from this class. This superclass is intended primarily to contain functionality that allows one to check compatibility between datasets and processors, and processors and other processors, agnostic of whether the object being checked is a dataset or processor. This reduces boilerplate code in is_compatible_with methods in processors.