Back compatibility 0.1

This commit is contained in:
Dario Coscia
2025-02-19 16:29:04 +01:00
committed by Nicola Demo
parent df673cad4e
commit 886bd23fdb
9 changed files with 114 additions and 8 deletions

View File

@@ -0,0 +1,13 @@
import warnings
from ..adaptive_function import *
from ..utils import custom_warning_format
# back-compatibility 0.1
# Set the custom format for warnings
warnings.formatwarning = custom_warning_format
warnings.filterwarnings("always", category=DeprecationWarning)
warnings.warn(
f"'pina.adaptive_functions' is deprecated and will be removed "
f"in future versions. Please use 'pina.adaptive_function' instead.",
DeprecationWarning)