From aad2b4de0ae6cfeed34e91b681c0b7ce9334a9ea Mon Sep 17 00:00:00 2001 From: Tiago Freitas Pereira <tiagofrepereira@gmail.com> Date: Fri, 27 Mar 2020 15:26:04 +0100 Subject: [PATCH] Made the Deprecation warning non mandatory --- bob/bio/base/algorithm/Algorithm.py | 1 - bob/bio/base/extractor/Extractor.py | 1 - bob/bio/base/preprocessor/Preprocessor.py | 1 - 3 files changed, 3 deletions(-) diff --git a/bob/bio/base/algorithm/Algorithm.py b/bob/bio/base/algorithm/Algorithm.py index f0316645..91802e41 100644 --- a/bob/bio/base/algorithm/Algorithm.py +++ b/bob/bio/base/algorithm/Algorithm.py @@ -91,7 +91,6 @@ class Algorithm (object): ): - warnings.simplefilter('default') warnings.warn("`bob.bio.base.algorithm.Algorithm` will be deprecated in 01/01/2021. "\ "Please, implement your biometric algorithm using `bob.pipelines` (https://gitlab.idiap.ch/bob/bob.pipelines).", DeprecationWarning) diff --git a/bob/bio/base/extractor/Extractor.py b/bob/bio/base/extractor/Extractor.py index 5cc5f46d..e7c6b913 100644 --- a/bob/bio/base/extractor/Extractor.py +++ b/bob/bio/base/extractor/Extractor.py @@ -55,7 +55,6 @@ class Extractor (object): self.min_feature_file_size = min_feature_file_size self._kwargs = kwargs - warnings.simplefilter('default') warnings.warn("`bob.bio.base.extractor.Extractor` will be deprecated in 01/01/2021. "\ "Please, implement your biometric algorithm using `bob.pipelines` (https://gitlab.idiap.ch/bob/bob.pipelines).", DeprecationWarning) diff --git a/bob/bio/base/preprocessor/Preprocessor.py b/bob/bio/base/preprocessor/Preprocessor.py index 197182aa..f9f63e35 100644 --- a/bob/bio/base/preprocessor/Preprocessor.py +++ b/bob/bio/base/preprocessor/Preprocessor.py @@ -41,7 +41,6 @@ class Preprocessor (object): self.min_preprocessed_file_size = min_preprocessed_file_size self._kwargs = kwargs - warnings.simplefilter('default') warnings.warn("`bob.bio.base.preprocessor.Preprocessor` will be deprecated in 01/01/2021. "\ "Please, implement your biometric algorithm using `bob.pipelines` (https://gitlab.idiap.ch/bob/bob.pipelines).", DeprecationWarning) -- GitLab