@@ -237,8 +237,6 @@ def _restore_selection(self):
237237 self .orientationTypeComboBox .setCurrentIndex (settings ['orientation_type_index' ])
238238 if 'max_line_length' in settings :
239239 self .maxLineLengthSpinBox .setValue (settings ['max_line_length' ])
240- if 'search_radius' in settings :
241- self .searchRadiusSpinBox .setValue (settings ['search_radius' ])
242240 if field := settings .get ('unit_name_field' ):
243241 self .unitNameFieldComboBox .setField (field )
244242 if field := settings .get ('dip_field' ):
@@ -253,15 +251,34 @@ def _persist_selection(self):
253251 if not self .data_manager :
254252 return
255253 settings = {
256- 'dtm_layer' : self .dtmLayerComboBox .currentLayer ().name () if self .dtmLayerComboBox .currentLayer () else None ,
257- 'geology_layer' : self .geologyLayerComboBox .currentLayer ().name () if self .geologyLayerComboBox .currentLayer () else None ,
258- 'basal_contacts_layer' : self .basalContactsComboBox .currentLayer ().name () if self .basalContactsComboBox .currentLayer () else None ,
259- 'sampled_contacts_layer' : self .sampledContactsComboBox .currentLayer ().name () if self .sampledContactsComboBox .currentLayer () else None ,
260- 'structure_layer' : self .structureLayerComboBox .currentLayer ().name () if self .structureLayerComboBox .currentLayer () else None ,
254+ 'dtm_layer' : (
255+ self .dtmLayerComboBox .currentLayer ().name ()
256+ if self .dtmLayerComboBox .currentLayer ()
257+ else None
258+ ),
259+ 'geology_layer' : (
260+ self .geologyLayerComboBox .currentLayer ().name ()
261+ if self .geologyLayerComboBox .currentLayer ()
262+ else None
263+ ),
264+ 'basal_contacts_layer' : (
265+ self .basalContactsComboBox .currentLayer ().name ()
266+ if self .basalContactsComboBox .currentLayer ()
267+ else None
268+ ),
269+ 'sampled_contacts_layer' : (
270+ self .sampledContactsComboBox .currentLayer ().name ()
271+ if self .sampledContactsComboBox .currentLayer ()
272+ else None
273+ ),
274+ 'structure_layer' : (
275+ self .structureLayerComboBox .currentLayer ().name ()
276+ if self .structureLayerComboBox .currentLayer ()
277+ else None
278+ ),
261279 'calculator_type_index' : self .calculatorTypeComboBox .currentIndex (),
262280 'orientation_type_index' : self .orientationTypeComboBox .currentIndex (),
263281 'max_line_length' : self .maxLineLengthSpinBox .value (),
264- 'search_radius' : self .searchRadiusSpinBox .value (),
265282 'unit_name_field' : self .unitNameFieldComboBox .currentField (),
266283 'dip_field' : self .dipFieldComboBox .currentField (),
267284 'dipdir_field' : self .dipDirFieldComboBox .currentField (),
@@ -298,7 +315,9 @@ def _run_calculator(self):
298315 try :
299316 result = calculate_thickness (** params )
300317 if not result :
301- QMessageBox .warning (self , "No Results" , "Thickness calculation returned no results." )
318+ QMessageBox .warning (
319+ self , "No Results" , "Thickness calculation returned no results."
320+ )
302321 return False
303322
304323 # Expect result as dict with components; fall back to direct layer
0 commit comments