16 lines
474 B
Python
16 lines
474 B
Python
import warnings
|
|
|
|
from ...solver.physic_informed_solver 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(
|
|
"'pina.solvers.pinns' is deprecated and will be removed "
|
|
"in future versions. Please use "
|
|
"'pina.solver.physic_informed_solver' instead.",
|
|
DeprecationWarning,
|
|
)
|