find_best_a_naive

tolteca.recipes.autodrive.find_best_a_naive(a, y, n_flat, thresh)[source]

A simple brutal force finder of the best atten value.

The algorithm goes through the values in decreasing order and looks for the first point hat has y higher by some factor.