Skip to content

Commit 0704eb8

Browse files
committed
fix: add message if no contacts found
1 parent 6e2e202 commit 0704eb8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

loopstructural/gui/map2loop_tools/basal_contacts_widget.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def _is_null_like(v):
288288
continue
289289
if val not in values:
290290
values.append(val)
291-
stratigraphic_order = values
291+
stratigraphic_order = values
292292
print(f"Extracting all contacts for units: {stratigraphic_order}")
293293
self.data_manager.logger(f"Extracting all contacts for units: {stratigraphic_order}")
294294

@@ -310,4 +310,10 @@ def _is_null_like(v):
310310
contact_type = "all contacts and basal contacts"
311311
elif not all_contacts and result['basal_contacts'].empty is False:
312312
addGeoDataFrameToproject(result['basal_contacts'], "Basal contacts")
313+
else:
314+
QMessageBox.information(
315+
self,
316+
"No Contacts Found",
317+
"No contacts were found with the given parameters.",
318+
)
313319
return result, contact_type

0 commit comments

Comments
 (0)