Commit 2ac1d8f1 authored by Baptiste Durand's avatar Baptiste Durand

Separation of the imports of the different sub-modules.

Even if fenics is not installed, the mesh/geometry functionalities (gmsh) can be used.
parent ad968fb6
......@@ -12,8 +12,26 @@ __version__ = "0.1"
from . import geometry, materials, periodicity
from . import full_scale_pb, homog2d, mesh_generate, mesh_tools, part, toolbox_FEniCS
from . import geometry, mesh_tools, mesh_generate
except ImportError:
pckg_logger.warning("Import of geometry and mesh generating submodules fails")
from . import materials
except ImportError:
pckg_logger.warning("Import of material submodule fails")
from . import periodicity
except ImportError:
pckg_logger.warning("Import of periodicity submodule fails")
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()
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