Skip to content

Commit

Permalink
fixed bug in stopped task with integrated calc
Browse files Browse the repository at this point in the history
  • Loading branch information
biuti committed Jul 24, 2024
1 parent acad134 commit f024100
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airscore/core/formulas/libs/leadcoeff.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ def tot_lc_calc(res, t):
if not hasattr(t.formula, 'matrix') or not t.formula.matrix:
# creating matrix
t.formula.matrix = lclib.weightedarea.weight_matrix()
if not hasattr(t.formula, 'slice_dist') or not t.formula.slice_dist:
# adding parameters
t.formula.slice_dist = t.SS_distance / 1000 / len(t.formula.matrix)
return lclib.weightedarea.tot_lc_calculation_integrate(res, t)
elif t.formula.lc_formula == 'weighted':
Expand Down

0 comments on commit f024100

Please sign in to comment.