Skip to content

Commit

Permalink
refactor(calibrate_gravity): improve error threshold check: >= instea…
Browse files Browse the repository at this point in the history
…d of >
  • Loading branch information
chanshing committed Jul 10, 2024
1 parent 42c4ff8 commit 6525958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actipy/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def calibrate_gravity(data, calib_cube=0.3, calib_min_samples=50, window='10s',

info['CalibErrorAfter(mg)'] = best_err * 1000

if (best_err > ERR_TOL) or (it + 1 == MAXITER):
if (best_err >= ERR_TOL) or (it + 1 >= MAXITER):
info['CalibOK'] = 0

return data, info
Expand Down

0 comments on commit 6525958

Please sign in to comment.