Compute_deterministics and var_names argument to sample

I’d like to use the new compute_deterministics function so that I don’t need to store all my deterministics in the trace. But the var_names argument of sample “Defaults to all free variables and deterministics.” So if I want only free variables in my trace - relying on compute_deteministics for any post-inference deterministics needs - I have to enumerate them all in the var_names argument. Is my understanding correct?
If so, is there a simple list comprehension like:
free_vars = [var for var in model.vars if model.is_free]
Thanks!

This should work I think:

var_names=[rv.name for rv in model.free_RVs]
4 Likes