Back compatibility 0.1
This commit is contained in:
committed by
Nicola Demo
parent
df673cad4e
commit
886bd23fdb
17
pina/geometry/__init__.py
Normal file
17
pina/geometry/__init__.py
Normal file
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user