In these lectures on conformal field theory, the author calculates the partition function for the free fermion on a torus. By calculating the contributions from different boundary conditions, they arrive at
With this, they note
The final expression looks like the usual expression for a partition function in terms of the Virasoro characters, with each term counting the contribution from each primary field. These characters are traditionally defined as
$$\chi_{c, h>0}(\tau) = \frac{q^{h+(1-c)/24}}{\eta(\tau)}$$ $$\chi_{c, 0}(\tau) = (1-q) \frac{q^{(1-c)/24}}{\eta(\tau)}$$
where $\eta(\tau)$ is the Dedekind eta function and $q = e^{2\pi i \tau}$. However, these definitions of the Virasoro characters do not appear to match up with their definitions of $\chi_{0, 1/2, 1/16}$ as given in Eq. 5.68 - at least this not is what Mathematica gives. Are their definitions of $\chi$ entirely different? If so, what exactly goes wrong when we try to calculate the partition function using the Virasoro characters as given in the previous equation?