Skip to content

Commit

Permalink
fix: init commit to remove lst comprehension
Browse files Browse the repository at this point in the history
  • Loading branch information
AngRodrigues committed Dec 11, 2024
1 parent 797053b commit bf22a32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions map2loop/thickness_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def compute(
for _, row in basal_contact.iterrows():
# find the shortest line between the basal contact points and top contact points
short_line = shapely.shortest_line(row.geometry, top_contact_geometry)
_lines.append(short_line)
_lines.append(short_line[0])

# check if the short line is
if self.max_line_length is not None and short_line.length > self.max_line_length:
Expand Down Expand Up @@ -415,7 +415,7 @@ def compute(
self.location_tracking = combined_location_tracking

# Create GeoDataFrame for lines
self.lines = geopandas.GeoDataFrame(geometry=[line[0] for line in _lines], crs=basal_contacts.crs)
self.lines = geopandas.GeoDataFrame(geometry=_lines, crs=basal_contacts.crs)
self.lines['dip'] = _dips

# Check thickness calculation
Expand Down

0 comments on commit bf22a32

Please sign in to comment.