pub fn validate_finite(value: f32, name: &str) -> PyResult<()>
Validate that a value is finite (not NaN or infinity)