Skip to content

Commit a535f4f

Browse files
committed
style: linting
1 parent 8266dca commit a535f4f

2 files changed

Lines changed: 30 additions & 7 deletions

File tree

loopstructural/gui/map2loop_tools/basal_contacts_widget.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,16 @@ def _persist_selection(self):
169169
if not self.data_manager:
170170
return
171171
settings = {
172-
'geology_layer': self.geologyLayerComboBox.currentLayer().name() if self.geologyLayerComboBox.currentLayer() else None,
173-
'faults_layer': self.faultsLayerComboBox.currentLayer().name() if self.faultsLayerComboBox.currentLayer() else None,
172+
'geology_layer': (
173+
self.geologyLayerComboBox.currentLayer().name()
174+
if self.geologyLayerComboBox.currentLayer()
175+
else None
176+
),
177+
'faults_layer': (
178+
self.faultsLayerComboBox.currentLayer().name()
179+
if self.faultsLayerComboBox.currentLayer()
180+
else None
181+
),
174182
'unit_name_field': self.unitNameFieldComboBox.currentField(),
175183
}
176184
self.data_manager.set_widget_settings('basal_contacts_widget', settings)
@@ -322,7 +330,6 @@ def _is_null_like(v):
322330
if val not in values:
323331
values.append(val)
324332
stratigraphic_order = values
325-
print(f"Extracting all contacts for units: {stratigraphic_order}")
326333
self.data_manager.logger(f"Extracting all contacts for units: {stratigraphic_order}")
327334

328335
result = extract_basal_contacts(

loopstructural/gui/map2loop_tools/sorter_widget.py

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,26 @@ def _persist_selection(self):
190190
if not self.data_manager:
191191
return
192192
settings = {
193-
'geology_layer': self.geologyLayerComboBox.currentLayer().name() if self.geologyLayerComboBox.currentLayer() else None,
194-
'structure_layer': self.structureLayerComboBox.currentLayer().name() if self.structureLayerComboBox.currentLayer() else None,
195-
'contacts_layer': self.contactsLayerComboBox.currentLayer().name() if self.contactsLayerComboBox.currentLayer() else None,
196-
'dtm_layer': self.dtmLayerComboBox.currentLayer().name() if self.dtmLayerComboBox.currentLayer() else None,
193+
'geology_layer': (
194+
self.geologyLayerComboBox.currentLayer().name()
195+
if self.geologyLayerComboBox.currentLayer()
196+
else None
197+
),
198+
'structure_layer': (
199+
self.structureLayerComboBox.currentLayer().name()
200+
if self.structureLayerComboBox.currentLayer()
201+
else None
202+
),
203+
'contacts_layer': (
204+
self.contactsLayerComboBox.currentLayer().name()
205+
if self.contactsLayerComboBox.currentLayer()
206+
else None
207+
),
208+
'dtm_layer': (
209+
self.dtmLayerComboBox.currentLayer().name()
210+
if self.dtmLayerComboBox.currentLayer()
211+
else None
212+
),
197213
'sorting_algorithm': self.sortingAlgorithmComboBox.currentIndex(),
198214
'orientation_type': self.orientationTypeComboBox.currentIndex(),
199215
'unit_name_field': self.unitNameFieldComboBox.currentField(),

0 commit comments

Comments
 (0)