Do not modify input data
Clean up detect_sources documentation