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

Exposing the method groups in our FileDatabase API

parent 4c32f1b8
No related branches found
No related tags found
1 merge request!150Exposing the method groups in our FileDatabase API
Pipeline #
......@@ -293,6 +293,20 @@ class BioDatabase(six.with_metaclass(abc.ABCMeta, bob.db.base.FileDatabase)):
"""
raise NotImplementedError("Please implement this function in derived classes")
def groups(self):
"""
Returns the names of all registered groups in the database
Keyword parameters:
protocol: str
The protocol for which the groups should be retrieved.
If you do not have protocols defined, just ignore this field.
"""
raise NotImplementedError("This function must be implemented in your derived class.")
@abc.abstractmethod
def objects(self, groups=None, protocol=None, purposes=None, model_ids=None, **kwargs):
"""This function returns a list of :py:class:`bob.bio.base.database.BioFile` objects or the list
......
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