Commit ece29908 authored by Baptiste Durand's avatar Baptiste Durand
parents 8e7e6e94 2ac1d8f1
......@@ -10,6 +10,28 @@ from pathlib import Path
__version__ = "0.1"
GEO_TOLERANCE = 1e-12
try:
from . import geometry, mesh_tools, mesh_generate
except ImportError:
pckg_logger.warning("Import of geometry and mesh generating submodules fails")
try:
from . import materials
except ImportError:
pckg_logger.warning("Import of material submodule fails")
try:
from . import periodicity
except ImportError:
pckg_logger.warning("Import of periodicity submodule fails")
try:
from . import full_scale_pb, homog2d, part, toolbox_FEniCS
except ImportError:
pckg_logger.warning("One of the following submodule imports fails : full_scale_pb, homog2d, part, toolbox_FEniCS")
log_level = logging.DEBUG
log_path = Path("~/ho_homog_log/activity.log").expanduser()
......@@ -22,8 +44,6 @@ formatter = logging.Formatter(
)
GEO_TOLERANCE = 1e-12
try:
from . import geometry, mesh_tools, mesh_generate
except ImportError:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment