Skip to content

Commit

Permalink
fix: remove list comprehension - wky
Browse files Browse the repository at this point in the history
  • Loading branch information
AngRodrigues committed Dec 11, 2024
1 parent 844caef commit 63af48d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion map2loop/thickness_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,11 @@ def compute(
f"Thickness Calculator InterpolatedStructure: Cannot calculate thickness between {stratigraphic_order[i]} and {stratigraphic_order[i + 1]}\n"
)

self.lines = geopandas.GeoDataFrame(geometry=[line[0] for line in _lines], crs = basal_contacts.crs)
geometries = []
for line in _lines:
geometries.append(line)

self.lines = geopandas.GeoDataFrame(geometry=geometries, crs = basal_contacts.crs)
self.lines['dip'] = _dips
self._check_thickness_percentage_calculations(thicknesses)
return thicknesses
Expand Down

0 comments on commit 63af48d

Please sign in to comment.