Hamilton Academical grabbed their first home league win of the season with a 1-0 triumph over leaders Partick Thistle.