singals_to_positions fix: nans are no longer counts as true