change logsumexp import
use soplate for dr9 and try to resolve faint/bright mix-ups before determining the selection function