PHOEBE 2 is officially released, but does not fully support all features in the original version of PHOEBE and should still be used with some caution.
Below are the versions we suggest using based on your needs:
- PHOEBE 1.0 (legacy) should be used for reliable trustable science results and for cases that do not require the precision or additional physics introduced by PHOEBE 2. PHOEBE 1.0 (legacy) is still significantly faster than PHOEBE 2.
- PHOEBE 2 should be used to learn the interface for PHOEBE going forward, and will be updated with future releases to include new physics. Although we have made every effort to test the science-results, please make sure all results make sense and report any issues.
IPython Notebook | Python
Minimal Example to Produce a Synthetic Light Curve
As always, let’s do imports and initialize a logger and a new bundle.
See Building a System for more
from phoebe import u # units
import numpy as np
import matplotlib.pyplot as plt
logger = phoebe.logger()
b = phoebe.default_binary()
Now we’ll create an empty lc dataset:
b.add_dataset('lc', times=np.linspace(0,1,201), dataset='mylc')
<ParameterSet: 15 parameters | contexts: compute, dataset>
Now we’ll compute synthetics at the times provided using the default
<ParameterSet: 2 parameters | qualifiers: fluxes, times>
Now we can simply plot the resulting synthetic light curve.
afig, mplfig = b['mylc@model'].plot(show=True)
afig, mplfig = b['mylc@model'].plot(x='phases', show=True)