Excellent! That worked!
The part I was missing was getting the trace of the quiver using trace1 = f.data[0], thanks a lot!
trace1 = f.data[0]