Skip to content

Commit b1d2ba9

Browse files
committed
fix: adding imports back into init file
1 parent f5e61ce commit b1d2ba9

File tree

15 files changed

+91
-2
lines changed

15 files changed

+91
-2
lines changed

LoopStructural/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@
55
"""
66

77
import logging
8+
from logging.config import dictConfig
89

910
__all__ = ["GeologicalModel"]
11+
import tempfile
12+
from pathlib import Path
13+
from .version import __version__
1014

1115
experimental = False
1216
ch = logging.StreamHandler()
@@ -16,6 +20,7 @@
1620
loggers = {}
1721
from .modelling.core.geological_model import GeologicalModel
1822
from .utils import getLogger
23+
from .utils import log_to_console, log_to_file, getLogger
1924

2025
logger = getLogger(__name__)
2126
logger.info("Imported LoopStructural")

LoopStructural/analysis/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
55
Various tools for analysing loopstructural models, including calculating fault intersections and fault toplogies
66
"""
7+
78
from ..utils import getLogger
89
import LoopStructural
910

1011
logger = getLogger(__name__)
1112
if LoopStructural.experimental:
1213
logger.warning("LoopStructural.analysis is experimental and may not perform as expected")
14+
from ._fault_displacement import displacement_missfit
15+
from ._fault_intersection import calculate_fault_intersections
16+
from ._topology import calculate_fault_topology_matrix

LoopStructural/api/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from ._interpolate import LoopInterpolator
2+
from ._surface import LoopIsosurfacer

LoopStructural/datasets/__init__.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,20 @@
44
55
Various datasets used for documentation and tutorials.
66
"""
7+
8+
from ._base import load_claudius
9+
from ._base import load_grose2017
10+
from ._base import load_grose2018
11+
from ._base import load_grose2019
12+
from ._base import load_laurent2016
13+
from ._base import load_noddy_single_fold
14+
from ._base import load_intrusion
15+
from ._base import normal_vector_headers
16+
from ._base import strike_dip_headers
17+
from ._base import value_headers
18+
from ._base import load_unconformity
19+
from ._base import load_duplex
20+
from ._base import load_tabular_intrusion
21+
from ._base import load_geological_map_data
22+
from ._base import load_fault_trace
23+
from ._base import load_horizontal

LoopStructural/datatypes/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from ._surface import Surface
2+
from ._bounding_box import BoundingBox

LoopStructural/interpolators/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ class InterpolatorType(IntEnum):
8484
logger.warning('Can\'t import surfepy - to install "pip install surfe"')
8585

8686
from ._p1interpolator import P1Interpolator
87+
from ._p2interpolator import P2Interpolator
8788

8889
interpolator_map = {
8990
InterpolatorType.BASE: GeologicalInterpolator,
@@ -104,3 +105,4 @@ class InterpolatorType(IntEnum):
104105
}
105106

106107

108+
from ._interpolator_factory import InterpolatorFactory

LoopStructural/interpolators/supports/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class SupportType(IntEnum):
3939
SupportType.P2UnstructuredTetMesh: P2UnstructuredTetMesh,
4040
}
4141

42+
from ._support_factory import SupportFactory
4243

4344
__all__ = [
4445
"BaseUnstructured2d",

LoopStructural/modelling/features/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ class FeatureType(IntEnum):
2323
INACTIVEFAULT = 11
2424

2525

26+
# from .builders._geological_feature_builder import GeologicalFeatureBuilder
27+
from ._base_geological_feature import BaseFeature
28+
from ._geological_feature import GeologicalFeature
29+
from ._lambda_geological_feature import LambdaGeologicalFeature
2630

2731
# from .builders._geological_feature_builder import GeologicalFeatureBuilder
32+
from ._structural_frame import StructuralFrame
33+
from ._cross_product_geological_feature import CrossProductGeologicalFeature
2834

35+
from ._unconformity_feature import UnconformityFeature
36+
from ._analytical_feature import AnalyticalGeologicalFeature
37+
from ._structural_frame import StructuralFrame
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from ._base_builder import BaseBuilder
2+
from ._geological_feature_builder import GeologicalFeatureBuilder
3+
from ._folded_feature_builder import FoldedFeatureBuilder
4+
from ._structural_frame_builder import StructuralFrameBuilder
5+
from ._fault_builder import FaultBuilder
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from ._fault_function import Composite, CubicFunction, Ones, Zeros
2+
from ._fault_function_feature import FaultDisplacementFeature
3+
from ._fault_segment import FaultSegment

0 commit comments

Comments
 (0)