'if quad else None' raises ValueError on a numpy array with more than one element. Replace with 'if quad is not None else None'. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
'if quad else None' raises ValueError on a numpy array with more than one element. Replace with 'if quad is not None else None'. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>