Replies: 1 comment 7 replies
-
I think your units error is because you are casting the Since you're using component-coupled, both luminosities will likely be changing, and so you would need to call |
Beta Was this translation helpful? Give feedback.
-
Hello,
I need to obtain the luminosity ratio of the two components when I run mcmc. However, in the 'component-coupled' mode, the secondary component luminosity is not visible. I try to get the luminosity ratio with the following custom constraints, and transfer the luminosity uncertainties of the primary component to the luminosity ratio after the mcmc runs.
lumidata = b.compute_pblums()
pblumratio_def = phoebe.parameters.FloatParameter(qualifier='pblumratio',
default_unit=u.dimensionless_unscaled,
value=1,
description='Passband Luminosity ratio', overwrite_all=True)
pblumratio_param, created = b.get_or_create('pblumratio',pblumratio_def, context='dataset', dataset='lcT')
lsh = pblumratio_param
rsh = np.float64(lumidata['pblum@secondary@lcT'])/b.get_parameter(qualifier='pblum', component='primary', dataset='lcT')
b.add_constraint(lsh,rsh)
However, when I run
b.uncertainties_from_distribution_collection(solution='emcee_sol', parameters=['pblumratio'], tex=True)
NotImplementedError: cannot convert object with physical_ type=power/radiant flux to solar units
Or is there any other way to solve this problem?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions