Commit 1883c776 authored by André Anjos's avatar André Anjos 💬

Doc and identiation fixes

parent 788367d6
Pipeline #5196 failed with stages
in 7 minutes and 49 seconds
...@@ -64,7 +64,7 @@ class Database(BioDatabase): ...@@ -64,7 +64,7 @@ class Database(BioDatabase):
def client_id_from_model_id(self, model_id, group='dev'): def client_id_from_model_id(self, model_id, group='dev'):
"""Required as ``model_id != client_id`` on this database""" """Required as ``model_id != client_id`` on this database"""
return self.__db.finger_name_from_model_id(model_id) return self.__db.finger_name_from_model_id(model_id)
......
...@@ -350,9 +350,9 @@ class FingerCrop (Preprocessor): ...@@ -350,9 +350,9 @@ class FingerCrop (Preprocessor):
img_h, img_w = image.shape img_h, img_w = image.shape
# Calculates the mask edges along the columns # Calculates the mask edges along the columns
edges = numpy.zeros(2, img_w) edges = numpy.zeros((2, img_w), dtype=int)
edges[0,:] = mask.argmax(axis=0) # get upper edges edges[0,:] = mask.argmax(axis=0) # get upper edges
edges[1,:] = len(mask) - numpy.flipup(mask).argmax(axis=0) - 1 edges[1,:] = len(mask) - numpy.flipud(mask).argmax(axis=0) - 1
bl = edges.mean(axis=0) #baseline bl = edges.mean(axis=0) #baseline
x = numpy.arange(0,img_w) x = numpy.arange(0,img_w)
...@@ -442,7 +442,7 @@ class FingerCrop (Preprocessor): ...@@ -442,7 +442,7 @@ class FingerCrop (Preprocessor):
return retval return retval
def __call__(self, data): def __call__(self, data, annotations):
"""Reads the input image or (image, mask) and prepares for fex. """Reads the input image or (image, mask) and prepares for fex.
Parameters: Parameters:
......
...@@ -107,10 +107,10 @@ protocol, do the following: ...@@ -107,10 +107,10 @@ protocol, do the following:
submit your job for SGE execution, you can run it in parallel (using 4 submit your job for SGE execution, you can run it in parallel (using 4
parallel tasks) by adding the options ``--parallel=4 --nice=10``. parallel tasks) by adding the options ``--parallel=4 --nice=10``.
Optionally, you may use the ``parallel` resource configuration which already Optionally, you may use the ``parallel`` resource configuration which
sets the number of parallel jobs to the number of hardware cores you have already sets the number of parallel jobs to the number of hardware cores you
installed on your machine (as with :py:func:`multiprocessing.cpu_count`) and have installed on your machine (as with
sets ``nice=10``. For example: :py:func:`multiprocessing.cpu_count`) and sets ``nice=10``. For example:
.. code-block:: sh .. code-block:: sh
......
Markdown is supported
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