Thank you for your interest in our work!
This repository hosts the diskSED model, as described in Guolo & Mummery (2025).
- Python 3
- Astropy
- NumPy
- pyXSPEC (included as part of HEASoft)
- All of the above
- Bayesian X-ray Analysis (BXA)
- UltraNest (or alternative Bayesian inference software)
- Corner (for corner plots)
pip install git+https://github.com/muryelgp/diskSED.git
git clone https://github.com/muryelgp/diskSED.git
cd diskSED
python3 -m pip install -e .
The Examples folder contains several Jupyter notebooks demonstrating step-by-step usage of the model:
prep_data.ipynb
: Demonstrates how to prepare grouped X-ray spectra and UV/optical/NIR SED files.fitting.ipynb
: Shows how to load data, configure the model, and perform Bayesian fitting using pyXSPEC/BXA/UltraNest.fancy_plots.ipynb
: Provides instructions for generating plots of data, observed and intrinsic model SEDs, corner plots, and parameter histograms.properties.ipynb
: Explains how to estimate secondary parameters from the fit results (e.g., Black Hole Mass, outer radius in Rg, Bolometric Luminosity, and Eddington Ratio).- Planned Updates: Advanced techniques like multi-epoch joint fitting, non-standard priors, or non-standard likelihood functions (e.g., including upper limits), aditionon of non-thermal components, etc. See papers in Citations for examples.
If you use the diskSED model in any publication, please cite Guolo & Mummery (2025) along with its dependencies.
- The properties of GSN 069 accretion disk from a joint X-ray and UV spectral analysis by M. Guolo, A. Mummery, et al.
- Time-resolved Hubble Space Telescope UV observations of an X-ray quasi-periodic eruption source by T. Wevers, M. Guolo, et al.
These papers provide examples of how to describe the model and properly cite dependencies. If these works have influenced or motivated your research, you are encouraged to cite them as well.
- Statistical Aspects of X-ray Spectral Analysis by J. Buchner & P. Boorman.
- Dos and don'ts of reduced chi-squared by Andrae et al.
- BXA tutorial by P. Boorman.
- Practical Inference for Researchers in the Physical Sciences by F. Capel & J. Buchner.
- The Disk Accretion of a Tidally Disrupted Star onto a Massive Black Hole by Cannizzo et al.
- The spectral evolution of disc dominated tidal disruption events by Mummery & Balbus
- Fundamental scaling relationships revealed in the optical light curves of tidal disruption events by Mummery et al.
- Fitting transients with discs (FitTeD): a public light curve and spectral fitting package based on evolving relativistic discs by Mummery et al.
- If you're looking for the Relativistic version (kerrSED), it is unfortunately not publicly available yet.
- The model is implemented only in Python and can therefore only be used with pyXSPEC. A C/Fortran version does not exist, and therefore the model is not compatible with standard XSPEC. Recommendation: Switch to pyXSPEC for greater flexibility, especially when dealing with high-dimensional models/data-sets and to use Bayesian inference methods.
- If you're interested in implementing diskSED in standard XSPEC or have already done so, feel free to contact me so we can include it here.
- Please note that we are not responsible for any misuse of the model, nor do we endorse results derived from it a priori. Users are encouraged to apply caution and sound scientific judgment. The model's assumptions and limitations are described in the original paper, particularly on sections 1 and 5, aditional questions can be send by email.
- For general inquiries, contact me at [email protected]. Please check the tutorials first to see if your question has already been addressed.