Commit 572d5605 authored by Manuel Günther's avatar Manuel Günther
Browse files

Use new-style base classes

parent 4d92fe52
Pipeline #7482 passed with stages
in 10 minutes and 44 seconds
......@@ -7,7 +7,7 @@ import numpy
import os
from .. import utils
class Algorithm:
class Algorithm (object):
"""This is the base class for all biometric recognition algorithms.
It defines the minimum requirements for all derived algorithm classes.
......
......@@ -7,7 +7,7 @@ import os
from .. import utils
class Extractor:
class Extractor (object):
"""This is the base class for all feature extractors.
It defines the minimum requirements that a derived feature extractor class need to implement.
......
......@@ -21,7 +21,7 @@ PREDEFINED_QUEUES = {
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.
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 @@
from .. import utils
class Preprocessor:
class Preprocessor (object):
"""This is the base class for all preprocessors.
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):
return (start, end)
class GridSubmission:
class GridSubmission (object):
def __init__(self, args, command_line_parameters, executable = 'verify.py', first_fake_job_id = 0):
# find, where the executable is installed
import bob.extension
......@@ -49,7 +49,7 @@ class GridSubmission:
if args.grid is not None:
assert isinstance(args.grid, grid.Grid)
self.env = args.env #Fetching the enviroment variable
# find, where jman is installed
......
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