From fb44fef387ef521d0b5e0f48f205144a35190ba4 Mon Sep 17 00:00:00 2001 From: AngRodrigues Date: Wed, 24 Apr 2024 17:32:18 +1000 Subject: [PATCH] fix: remove unnecessary variable declarations --- map2loop/thickness_calculator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/map2loop/thickness_calculator.py b/map2loop/thickness_calculator.py index 253c1dd9..70f6eeb3 100644 --- a/map2loop/thickness_calculator.py +++ b/map2loop/thickness_calculator.py @@ -417,7 +417,7 @@ def compute( If the thickness is not calculated for a given unit, the assigned thickness will be -1. For the bottom and top units of the stratigraphic sequence, the assigned thickness will also be -1. """ - sampled_contacts = map_data.sampled_contacts + sampled_structures = structure_data basal_contacts = basal_contacts.copy() @@ -430,7 +430,7 @@ def compute( crs=basal_contacts.crs, ) sampled_structures['unit_name'] = geopandas.sjoin(sampled_structures, geology)['UNITNAME'] - sampled_basal_contacts = rebuild_sampled_basal_contacts(basal_contacts, sampled_contacts) + sampled_basal_contacts = rebuild_sampled_basal_contacts(basal_contacts, map_data.sampled_contacts) basal_contacts_bu = basal_contacts.copy() basal_contacts_bu['geometry'] = basal_contacts_bu.buffer(0.1)