Code cleaning in get_Th_inf.m