diff --git a/bob/bio/base/preprocessor/Preprocessor.py b/bob/bio/base/preprocessor/Preprocessor.py index 4ab8de669df7e60e19e48967cfdc08030f48290a..1ee0e4845851aa75c2e3753304f8971673f8ff87 100644 --- a/bob/bio/base/preprocessor/Preprocessor.py +++ b/bob/bio/base/preprocessor/Preprocessor.py @@ -23,10 +23,12 @@ class Preprocessor: A list of keyword arguments to be written in the `__str__` function. """ - def __init__(self, writes_data=True, read_original_data=utils.read_original_data, **kwargs): + def __init__(self, writes_data=True, read_original_data=None, **kwargs): # Each class needs to have a constructor taking # all the parameters that are required for the preprocessing as arguments self.writes_data = writes_data + if read_original_data is None: + read_original_data = utils.read_original_data self.read_original_data = read_original_data self._kwargs = kwargs pass