Skip to content

Commit

Permalink
fix: adding BaseBuilder to builders init
Browse files Browse the repository at this point in the history
  • Loading branch information
Lachlan Grose committed Oct 3, 2022
1 parent 7c6ccef commit 7f56fdd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LoopStructural/modelling/features/builders/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from ._base_builder import BaseBuilder
from ._geological_feature_builder import GeologicalFeatureBuilder
from ._folded_feature_builder import FoldedFeatureBuilder
from ._structural_frame_builder import StructuralFrameBuilder
from ._fault_builder import FaultBuilder
from ._base_builder import BaseBuilder
18 changes: 17 additions & 1 deletion LoopStructural/modelling/features/builders/_base_builder.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
class BaseBuilder:
def __init__(self, name="Feature"):
"""Base builder that provides a template for
implementing different builders.
Parameters
----------
name : str, optional
The name of the feature being built. The name needs to be unique
for the model, by default "Feature"
Notes
------
The interpolation/work should only be done when .build() is called
.feature should return a reference to the feature, which may not be up
to date.
If the build arguments are changed, this will flag that the feature needs to be rebuilt
"""
self._name = name
self._feature = None
self._feature = None
self._up_to_date = False
self._build_arguments = {}
self.faults = []
Expand Down

0 comments on commit 7f56fdd

Please sign in to comment.