Skip to content

Commit

Permalink
fix: add descriptive variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
AngRodrigues committed Apr 24, 2024
1 parent fa3e4bb commit 672bece
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions map2loop/thickness_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def compute(
map_dx = geology.total_bounds[2] - geology.total_bounds[0]
map_dy = geology.total_bounds[3] - geology.total_bounds[1]

ths = []
thicknesses = []
lis = []

for s in range(0, len(sampled_structures)):
Expand Down Expand Up @@ -511,12 +511,12 @@ def compute(
continue

L = math.sqrt(((int_pt1.x - int_pt2.x) ** 2) + ((int_pt1.y - int_pt2.y) ** 2))
th = L * math.sin(math.radians(measurement['DIP']))
thickness = L * math.sin(math.radians(measurement['DIP']))

ths.append(th)
thicknesses.append(thickness)
lis.append(litho_in)

result = pandas.DataFrame({'unit': lis, 'thickness': ths})
result = pandas.DataFrame({'unit': lis, 'thickness': thicknesses})
result = result.groupby('unit')['thickness'].agg(['median', 'std']).reset_index()

output_units = units.copy()
Expand Down

0 comments on commit 672bece

Please sign in to comment.