Yep. 180 days, the DTA cuts in and then determines tax residency. People undertaking courses in Thailand as a tourist are not going to be taxed. Period
I live in Thailand for around eight months of the year (240 days) and yet I am not a Thai Tax Resident. Do not listen to the fear-mongers, they have no idea