2.1 - 2.2 Migration: l3_mode

Similarly to supporting multiple modes for handling passband luminosities, the 2.2 release also introduces support for defining third-light as a fraction of the total light (in addition to the previous support for providing third light in flux units).


In [1]:
import phoebe
b = phoebe.default_binary()
b.add_dataset('lc', dataset='lc01')
print(b.filter(qualifier='l3*', dataset='lc01'))


ParameterSet: 2 parameters
            l3_mode@lc01@dataset: flux
                 l3@lc01@dataset: 0.0 W / m2

By default, the value of l3_mode is set to 'flux', in which case the behavior of the l3 parameter is unchanged from previous releases.

However, you can change the value of l3_mode to expose the l3_frac parameter. For more details, see the third light tutorial.


In [2]:
print(b.get_parameter('l3_mode').choices)


['flux', 'fraction']

Additionally, PHOEBE 2.2 introduces a new bundle-method for computing third light in flux or fractional units (whichever is not set by the user according to l3_mode.


In [3]:
print(b.compute_l3s())


{'l3_frac@lc01': 0.0}

For more details, see the b.compute_l3s API docs.