@@ -57,7 +57,7 @@ class ThicknessCalculatorAlgorithm(QgsProcessingAlgorithm):
5757 INPUT_DIPDIR_FIELD = 'DIPDIR_FIELD'
5858 INPUT_DIP_FIELD = 'DIP_FIELD'
5959 INPUT_GEOLOGY = 'GEOLOGY'
60- INPUT_THICKNESS_ORIENTATION_TYPE = 'THICKNESS_ORIENTATION_TYPE '
60+ INPUT_ORIENTATION_TYPE = 'ORIENTATION_TYPE '
6161 INPUT_UNIT_NAME_FIELD = 'UNIT_NAME_FIELD'
6262 INPUT_SAMPLED_CONTACTS = 'SAMPLED_CONTACTS'
6363 INPUT_STRATIGRAPHIC_COLUMN_LAYER = 'STRATIGRAPHIC_COLUMN_LAYER'
@@ -195,8 +195,8 @@ def initAlgorithm(self, config: Optional[dict[str, Any]] = None) -> None:
195195 )
196196 self .addParameter (
197197 QgsProcessingParameterEnum (
198- 'THICKNESS_ORIENTATION_TYPE' ,
199- 'Thickness Orientation Type' ,
198+ self . INPUT_ORIENTATION_TYPE ,
199+ 'Orientation Type' ,
200200 options = ['Dip Direction' , 'Strike' ],
201201 defaultValue = 0 # Default to Dip Direction
202202 )
@@ -242,8 +242,8 @@ def processAlgorithm(
242242 basal_contacts = self .parameterAsSource (parameters , self .INPUT_BASAL_CONTACTS , context )
243243 geology_data = self .parameterAsSource (parameters , self .INPUT_GEOLOGY , context )
244244 structure_data = self .parameterAsSource (parameters , self .INPUT_STRUCTURE_DATA , context )
245- thickness_orientation_type = self .parameterAsEnum (parameters , self .INPUT_THICKNESS_ORIENTATION_TYPE , context )
246- is_strike = (thickness_orientation_type == 1 )
245+ orientation_type = self .parameterAsEnum (parameters , self .INPUT_ORIENTATION_TYPE , context )
246+ is_strike = (orientation_type == 1 )
247247 structure_dipdir_field = self .parameterAsString (parameters , self .INPUT_DIPDIR_FIELD , context )
248248 structure_dip_field = self .parameterAsString (parameters , self .INPUT_DIP_FIELD , context )
249249 sampled_contacts = self .parameterAsSource (parameters , self .INPUT_SAMPLED_CONTACTS , context )
0 commit comments