flux_fit_type function

to check the type of fit