Skip to content
Snippets Groups Projects
Commit a080d605 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Merge branch '19-bug-in-lfw-extension' into 'master'

Fixed issue in the LFW scores (#19)

Closes #19

See merge request !24
parents 25e87d12 653b9b03
No related branches found
No related tags found
1 merge request!24Fixed issue in the LFW scores (#19)
Pipeline #
...@@ -55,3 +55,13 @@ class LFWBioDatabase(BioDatabase): ...@@ -55,3 +55,13 @@ class LFWBioDatabase(BioDatabase):
def annotations(self, myfile): def annotations(self, myfile):
return self._db.annotations(myfile._f) return self._db.annotations(myfile._f)
def client_id_from_model_id(self, model_id, group='dev'):
"""Return the client id associated with the given model id.
In this base class implementation, it is assumed that only one model is enrolled for each client and, thus, client id and model id are identical.
All key word arguments are ignored.
Please override this function in derived class implementations to change this behavior."""
# since there is one model per file, we can re-use the function above.
return self._db.get_client_id_from_file_id(model_id)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment