Skip to content
Snippets Groups Projects
Commit 572d5605 authored by Manuel Günther's avatar Manuel Günther
Browse files

Use new-style base classes

parent 4d92fe52
No related branches found
No related tags found
1 merge request!64Resolve "Base classes are not new-style classes"
Pipeline #
...@@ -7,7 +7,7 @@ import numpy ...@@ -7,7 +7,7 @@ import numpy
import os import os
from .. import utils from .. import utils
class Algorithm: class Algorithm (object):
"""This is the base class for all biometric recognition algorithms. """This is the base class for all biometric recognition algorithms.
It defines the minimum requirements for all derived algorithm classes. It defines the minimum requirements for all derived algorithm classes.
......
...@@ -7,7 +7,7 @@ import os ...@@ -7,7 +7,7 @@ import os
from .. import utils from .. import utils
class Extractor: class Extractor (object):
"""This is the base class for all feature extractors. """This is the base class for all feature extractors.
It defines the minimum requirements that a derived feature extractor class need to implement. It defines the minimum requirements that a derived feature extractor class need to implement.
......
...@@ -21,7 +21,7 @@ PREDEFINED_QUEUES = { ...@@ -21,7 +21,7 @@ PREDEFINED_QUEUES = {
from . import utils from . import utils
class Grid: class Grid (object):
"""This class is defining the options that are required to submit parallel jobs to the SGE grid, or jobs to the local queue. """This class is defining the options that are required to submit parallel jobs to the SGE grid, or jobs to the local queue.
If the given ``grid_type`` is ``'sge'`` (the default), this configuration is set up to submit algorithms to the SGE grid. If the given ``grid_type`` is ``'sge'`` (the default), this configuration is set up to submit algorithms to the SGE grid.
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
from .. import utils from .. import utils
class Preprocessor: class Preprocessor (object):
"""This is the base class for all preprocessors. """This is the base class for all preprocessors.
It defines the minimum requirements for all derived proprocessor classes. It defines the minimum requirements for all derived proprocessor classes.
......
...@@ -32,7 +32,7 @@ def indices(list_to_split, number_of_parallel_jobs, task_id=None): ...@@ -32,7 +32,7 @@ def indices(list_to_split, number_of_parallel_jobs, task_id=None):
return (start, end) return (start, end)
class GridSubmission: class GridSubmission (object):
def __init__(self, args, command_line_parameters, executable = 'verify.py', first_fake_job_id = 0): def __init__(self, args, command_line_parameters, executable = 'verify.py', first_fake_job_id = 0):
# find, where the executable is installed # find, where the executable is installed
import bob.extension import bob.extension
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment