From c3a14afc3461c80e3d9c432585412c3a302cde6b Mon Sep 17 00:00:00 2001
From: Amir Mohammadi <183.amir@gmail.com>
Date: Wed, 18 Jan 2017 14:59:09 +0100
Subject: [PATCH] t_model is the same as model (in size)

---
 bob/bio/base/algorithm/Algorithm.py | 5 -----
 bob/bio/base/tools/algorithm.py     | 2 +-
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/bob/bio/base/algorithm/Algorithm.py b/bob/bio/base/algorithm/Algorithm.py
index fec131a4..990c2093 100644
--- a/bob/bio/base/algorithm/Algorithm.py
+++ b/bob/bio/base/algorithm/Algorithm.py
@@ -65,10 +65,6 @@ class Algorithm:
     The minimum file size of model_file in bytes. If the saved file is smaller
     than this, it is assumed to be corrupt and it will be generated again.
 
-  min_t_model_file_size : int
-    The minimum file size of t_model_file in bytes. If the saved file is smaller
-    than this, it is assumed to be corrupt and it will be generated again.
-
   kwargs : ``key=value`` pairs
     A list of keyword arguments to be written in the `__str__` function.
 
@@ -102,7 +98,6 @@ class Algorithm:
     self.min_projected_file_size = min_projected_file_size
     self.min_enroller_file_size = min_enroller_file_size
     self.min_model_file_size = min_model_file_size
-    self.min_t_model_file_size = min_t_model_file_size
     self._kwargs = kwargs
     self._kwargs.update({'multiple_model_scoring':multiple_model_scoring, 'multiple_probe_scoring':multiple_probe_scoring})
 
diff --git a/bob/bio/base/tools/algorithm.py b/bob/bio/base/tools/algorithm.py
index 98486e9d..c554d917 100644
--- a/bob/bio/base/tools/algorithm.py
+++ b/bob/bio/base/tools/algorithm.py
@@ -310,7 +310,7 @@ def enroll(algorithm, extractor, compute_zt_norm, indices = None, groups = ['dev
 
         # Removes old file if required
         if not utils.check_file(t_model_file, force,
-                                algorithm.min_t_model_file_size):
+                                algorithm.min_model_file_size):
           t_enroll_files = fs.t_enroll_files(t_model_id, group, 'projected' if algorithm.use_projected_features_for_enrollment else 'extracted')
 
           if allow_missing_files:
-- 
GitLab