Files
PINA/pina/geometry/__init__.py
Dario Coscia 42ab1a666b Formatting
* Adding black as dev dependency
* Formatting pina code
* Formatting tests
2025-03-19 17:46:36 +01:00

19 lines
508 B
Python

import warnings
from ..domain import *
from ..utils import custom_warning_format
# back-compatibility 0.1
# creating alias
Location = DomainInterface
# Set the custom format for warnings
warnings.formatwarning = custom_warning_format
warnings.filterwarnings("always", category=DeprecationWarning)
warnings.warn(
"'pina.geometry' is deprecated and will be removed "
"in future versions. Please use 'pina.domain' instead. "
"Location moved to DomainInferface object.",
DeprecationWarning,
)