Files
PINA/pina/operators.py
2025-03-19 17:46:36 +01:00

13 lines
440 B
Python

import warnings
from .operator 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.operators' is deprecated and will be removed "
f"in future versions. Please use 'pina.operator' instead.",
DeprecationWarning)