Coverage for src/bob/bio/vein/database/database.py: 0%
7 statements
« prev ^ index » next coverage.py v7.6.0, created at 2024-07-12 23:27 +0200
« prev ^ index » next coverage.py v7.6.0, created at 2024-07-12 23:27 +0200
1#!/usr/bin/env python
2# vim: set fileencoding=utf-8 :
3# Thu 03 Nov 2016 12:23:52 CET
5"""Single sample API"""
8from bob.bio.base.database.file import BioFile
11class VeinBioFile(BioFile):
12 """A "sample" object that is specific to vein recognition experiments
15 Parameters:
17 f (object): Low-level file (or sample) object that is kept inside
19 """
21 def __init__(self, f):
22 import warnings
24 warnings.warn(
25 "This class is deprecated. Use bob.bio.base.pipelines.CSVDatabase and bob.pipelines.Sample instead.",
26 DeprecationWarning,
27 )
28 super(VeinBioFile, self).__init__(
29 client_id=f.model_id,
30 path=f.path,
31 file_id=f.id,
32 )
34 # keep copy of original low-level database file object
35 self.f = f