diff --git a/crates/accelerate/src/results/marginalization.rs b/crates/accelerate/src/results/marginalization.rs index f71511f0e1b6..7a91305b6158 100644 --- a/crates/accelerate/src/results/marginalization.rs +++ b/crates/accelerate/src/results/marginalization.rs @@ -132,7 +132,7 @@ pub fn marginal_memory( parallel_threshold: usize, ) -> PyResult { let run_in_parallel = getenv_use_multiple_threads(); - let first_elem = memory.get(0); + let first_elem = memory.first(); if first_elem.is_none() { let res: Vec = Vec::new(); return Ok(res.to_object(py));