Hello Marc,
sorry for the revival of this old thread, but I will add my predicament to this conversation as it is related to Randolf's. I have measurements for OI_63, OI_145, CII_158 and CO_1413. I arithmetically compute the ratio CII_158/CO_1413 using (CII_158/CO_65)/(CO_1413/CO_65) and added it to the modelset. ms.user_added_models returns "CII_158/CO_1413", and ms.supported_ratios shows it at the bottom of the list, so all good so far, and a quick glance at the fits file seems to make sense.
I use the modelset to make my LineRatioFit, with all 4 lines as measurements and run it. I can see the new model made it in with lrf.modelset.user_added_models returning [''CII_158/CO_1413'], and that CO_1413 made it in with lrf.measurementIDs returning dict_keys(['OI_63', 'OI_145', 'CII_158', 'CO_1413']), so again all good.
However looking at the results, the ratio is not used, and lrf.observed_ratios returns ['OI_63/CII_158', 'OI_145/OI_63', 'CII_158/OI_145']. Furthermore, lrf.modelset.model_ratios(["OI_63", "OI_145", "CII_158", "CO_1413"]) returns the same. So despite the model being available for use, and the 1413 line being included in the measurements, it seems to not want to use it.
Am I missing something obvious here?
thanks and regards,
Aaron