Commit fdd1a334 authored by Manuel Günther's avatar Manuel Günther Committed by Tiago de Freitas Pereira
Browse files

Updated name of load_function to be read_original_data (to be consistent with...

Updated name of load_function to be read_original_data (to be consistent with the name of the function); used BioFile.load instead of bob.db.base.File.load as default.
parent 04ff36c2
......@@ -14,8 +14,8 @@ class Filename (Preprocessor):
"""
def __init__(self):
# call base class constructor, using a custom ``load_function`` that does nothing and always returns None
Preprocessor.__init__(self, writes_data=False, load_function = lambda x,y,z: None)
# call base class constructor, using a custom ``read_original_data`` that does nothing and always returns None
Preprocessor.__init__(self, writes_data=False, read_original_data = lambda x,y,z: None)
# The call function (i.e. the operator() in C++ terms)
......
......@@ -4,7 +4,7 @@
# @date: Tue Oct 2 12:12:39 CEST 2012
import bob.io.base
import bob.db.base
import bob.bio.db
import os
......@@ -27,11 +27,11 @@ class Preprocessor:
A list of keyword arguments to be written in the :py:meth:`__str__` function.
"""
def __init__(self, writes_data = True, load_function = bob.db.base.File.load, **kwargs):
def __init__(self, writes_data = True, read_original_data = bob.bio.db.BioFile.load, **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
self.read_original_data = load_function
self.read_original_data = read_original_data
self._kwargs = kwargs
pass
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment