-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: modules rewritten with new structure
- Loading branch information
1 parent
cadb5fc
commit ee17ea1
Showing
20 changed files
with
491 additions
and
442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
# from .fold_modelling import FoldModel, BaseFoldFrameBuilder | ||
from .datatypes import KnowledgeType, OptimisationType, ObjectiveType, DataType, NormalDistribution, \ | ||
VonMisesFisherDistribution | ||
from .datatypes import ( | ||
KnowledgeType, | ||
OptimisationType, | ||
ObjectiveType, | ||
DataType, | ||
NormalDistribution, | ||
VonMisesFisherDistribution, | ||
InputGeologicalKnowledge | ||
) | ||
from .helper import utils | ||
from .input import CheckInputData, InputDataProcessor | ||
from .objective_functions import GeologicalKnowledgeFunctions, VonMisesFisher, LeastSquaresFunctions, \ | ||
ObjectiveFunction, is_axial_plane_compatible | ||
from .objective_functions import ( | ||
GeologicalKnowledgeFunctions, | ||
VonMisesFisher, | ||
LeastSquaresFunctions, | ||
ObjectiveFunction | ||
) | ||
from .optimisers import FourierSeriesOptimiser, AxialSurfaceOptimiser | ||
from .splot import SPlotProcessor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
from .probability_distributions import NormalDistribution, VonMisesFisherDistribution | ||
from .input_geological_knowledge import InputGeologicalKnowledge | ||
from .enums import * | ||
from .enums import ( | ||
KnowledgeType, | ||
FitType, | ||
DataType, | ||
ObjectiveType, | ||
OptimisationType, | ||
OptimiserType, | ||
SolverType, | ||
ConstraintType, | ||
CoordinateType | ||
) | ||
from .interpolation_constraints import InterpolationConstraints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
from dataclasses import dataclass | ||
from typing import Union, Optional | ||
from typing import Union, Optional, List | ||
import numpy | ||
import beartype | ||
|
||
|
||
@beartype.beartype | ||
@dataclass | ||
class Bounds: | ||
lower_bound: Optional[Union[int, float, list, numpy.ndarray]] = None | ||
upper_bound: Optional[Union[int, float, list, numpy.ndarray]] = None | ||
lower_bound: Optional[Union[int, float, List, numpy.ndarray]] = None | ||
upper_bound: Optional[Union[int, float, List, numpy.ndarray]] = None | ||
|
||
|
||
@beartype.beartype | ||
@dataclass | ||
class NormalDistribution: | ||
mu: Union[int, float, list, numpy.ndarray] | ||
sigma: Union[int, float, list, numpy.ndarray] | ||
weight: Optional[Union[int, float, list, numpy.ndarray]] = 1. | ||
mu: Union[int, float] | ||
sigma: Union[int, float] | ||
weight: Optional[Union[int, float]] = 1.0 | ||
|
||
|
||
@beartype.beartype | ||
@dataclass | ||
class VonMisesFisherDistribution: | ||
mu: Union[int, float, list, numpy.ndarray] | ||
kappa: Union[int, float, list, numpy.ndarray] | ||
weight: Optional[Union[int, float, list, numpy.ndarray]] = 1. | ||
mu: Union[List, numpy.ndarray] | ||
kappa: Union[int, float] | ||
weight: Optional[Union[int, float]] = 1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
from ._helper import * | ||
from .utils import * |
Oops, something went wrong.