change ptw_get_frame to always use floats rather than mixed type