remove back compatibility files for version 0.2
This commit is contained in:
committed by
Giovanni Canali
parent
ef3542486c
commit
684d691b78
@@ -1,16 +0,0 @@
|
|||||||
"""Old module for adaptive functions. Deprecated in 0.2.0."""
|
|
||||||
|
|
||||||
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(
|
|
||||||
"'pina.adaptive_functions' is deprecated and will be removed "
|
|
||||||
"in future versions. Please use 'pina.adaptive_function' instead.",
|
|
||||||
DeprecationWarning,
|
|
||||||
)
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
"""Old module for callbacks. Deprecated in 0.2.0."""
|
|
||||||
|
|
||||||
import warnings
|
|
||||||
|
|
||||||
from ..callback 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.callbacks' is deprecated and will be removed "
|
|
||||||
"in future versions. Please use 'pina.callback' instead.",
|
|
||||||
DeprecationWarning,
|
|
||||||
)
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
"""Old module for geometry classes and functions. Deprecated in 0.2.0."""
|
|
||||||
|
|
||||||
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,
|
|
||||||
)
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
"""Old layers module, deprecated in 0.2.0."""
|
|
||||||
|
|
||||||
import warnings
|
|
||||||
|
|
||||||
from ..block 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.model.layers' is deprecated and will be removed "
|
|
||||||
"in future versions. Please use 'pina.model.block' instead.",
|
|
||||||
DeprecationWarning,
|
|
||||||
)
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
"""Old module for operators. Deprecated in 0.2.0."""
|
|
||||||
|
|
||||||
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(
|
|
||||||
"'pina.operators' is deprecated and will be removed "
|
|
||||||
"in future versions. Please use 'pina.operator' instead.",
|
|
||||||
DeprecationWarning,
|
|
||||||
)
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
"""Module for Plotter"""
|
|
||||||
|
|
||||||
raise ImportError("'pina.plotter' is deprecated and cannot be imported.")
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
"""Old module for solvers. Deprecated in 0.2.0 ."""
|
|
||||||
|
|
||||||
import warnings
|
|
||||||
|
|
||||||
from ..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' is deprecated and will be removed "
|
|
||||||
"in future versions. Please use 'pina.solver' instead.",
|
|
||||||
DeprecationWarning,
|
|
||||||
)
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
"""Old module for the PINNs solver. Deprecated in 0.2.0."""
|
|
||||||
|
|
||||||
import warnings
|
|
||||||
|
|
||||||
from ...solver.physics_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.physics_informed_solver' instead.",
|
|
||||||
DeprecationWarning,
|
|
||||||
)
|
|
||||||
Reference in New Issue
Block a user