diff --git a/bob/bio/spear/config/database/nist_sre12.py b/bob/bio/spear/config/database/nist_sre12.py index a9b38ea0e8f779b91421e3e7d400ce8809d85acb..e54008632a6b5afce6698c25a21bc38a6e3849f4 100644 --- a/bob/bio/spear/config/database/nist_sre12.py +++ b/bob/bio/spear/config/database/nist_sre12.py @@ -3,7 +3,6 @@ from bob.bio.spear.database import NistSre12BioDatabase -#nist_sre12_directory = "/idiap/resource/database/nist_sre" nist_sre12_directory = "[YOUR_NIST_SRE12_DIRECTORY]" diff --git a/bob/bio/spear/database/nist_sre12.py b/bob/bio/spear/database/nist_sre12.py index 09b13a0500471539ce93df454370d57d1bf7ac67..360dc4bb6a7cf65250940cecea69d6491064ce18 100644 --- a/bob/bio/spear/database/nist_sre12.py +++ b/bob/bio/spear/database/nist_sre12.py @@ -23,11 +23,11 @@ class NistSre12BioFile(AudioBioFile): """ super(NistSre12BioFile, self).__init__(client_id=f.client_id, path=f.path, file_id=f.id) - self.__f = f - self.path = os.path.join( os.path.dirname(self.__f.path), self.__f.id) + self.f = f + self.path = os.path.join( os.path.dirname(self.f.path), self.f.id) def load(self, directory=None, extension='.sph'): - rate, data = self.__f.load(directory, extension) + rate, data = self.f.load(directory, extension) data= np.cast['float'](data) return rate, data @@ -49,7 +49,7 @@ class NistSre12BioFile(AudioBioFile): """ # assure that directory and extension are actually strings # create the path - return str(os.path.join(directory or '', os.path.dirname(self.__f.path), self.__f.id + (extension or ''))) + return str(os.path.join(directory or '', os.path.dirname(self.f.path), self.f.id + (extension or ''))) class NistSre12BioDatabase(BioDatabase):