Skip to content

Commit ab30937

Browse files
committed
return all contacts
1 parent 3919eb1 commit ab30937

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

loopstructural/processing/algorithms/extract_basal_contacts.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* *
99
***************************************************************************
1010
"""
11+
1112
# Python imports
1213
from typing import Any, Optional
1314

@@ -131,6 +132,8 @@ def processAlgorithm(
131132
geology = self.parameterAsVectorLayer(parameters, self.INPUT_GEOLOGY, context)
132133
faults = self.parameterAsVectorLayer(parameters, self.INPUT_FAULTS, context)
133134
strati_column = self.parameterAsSource(parameters, self.INPUT_STRATI_COLUMN, context)
135+
# ensure we always have a stratigraphic order list defined
136+
strati_order = []
134137
ignore_units = self.parameterAsMatrix(parameters, self.INPUT_IGNORE_UNITS, context)
135138

136139
if isinstance(strati_column, QgsProcessingParameterMapLayer):
@@ -151,13 +154,14 @@ def processAlgorithm(
151154

152155
unit_name_field = self.parameterAsString(parameters, 'UNIT_NAME_FIELD', context)
153156

157+
# request all_contacts so the returned result contains both basal and all contacts
154158
result = extract_basal_contacts(
155159
geology=geology,
156160
stratigraphic_order=strati_order,
157161
faults=faults,
158162
ignore_units=ignore_units,
159163
unit_name_field=unit_name_field,
160-
all_contacts=False,
164+
all_contacts=True,
161165
updater=feedback.pushInfo,
162166
)
163167
basal_contacts = result['basal_contacts']

0 commit comments

Comments
 (0)