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

Created a getter and a setter for the BioAlgorithmLegacy.base_dir and fixed an...

Created a getter and a setter for the BioAlgorithmLegacy.base_dir and fixed an issue during the scoring
parent 13bb6c12
No related branches found
No related tags found
2 merge requests!192Redoing baselines,!180[dask] Preparing bob.bio.base for dask pipelines
......@@ -225,6 +225,17 @@ class BioAlgorithmLegacy(BioAlgorithm):
self._biometric_reference_extension = ".hdf5"
self.score_dir = os.path.join(base_dir, "scores")
self.force = force
self._base_dir = base_dir
@property
def base_dir(self):
return self._base_dir
@base_dir.setter
def base_dir(self, v):
self._base_dir = v
self.biometric_reference_dir = os.path.join(self._base_dir, "biometric_references")
self.score_dir = os.path.join(self._base_dir, "scores")
def load_legacy_background_model(self):
# Loading background model
......@@ -308,7 +319,7 @@ class BioAlgorithmLegacy(BioAlgorithm):
self.write_scores(scored_sample_set.samples, path)
scored_sample_set = SampleSet(
[DelayedSample(functools.partial(_load, path), parent=sampleset)],
DelayedSample(functools.partial(_load, path), parent=sampleset),
parent=sampleset,
)
else:
......
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