Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

A package for peakbagging solar-like oscillators

Project description

Peakbagging made easy Documentation Status

PBjam is toolbox for modeling the oscillation spectra of solar-like oscillators. This involves two main parts: identifying a set of modes of interest, and accurately modeling those modes to measure their frequencies.

Currently, the mode identification is based on fitting the asymptotic relation to the l=2,0 pairs, relying on the cumulative sum of prior knowledge gained from NASA’s Kepler mission to inform the fitting process.

Modeling the modes, or ‘peakbagging’, is done using the HMC sampler from pymc3, which fits a Lorentzian to each of the identified modes, with much fewer priors than during he mode ID process. This allows for a more accurate model of the spectrum of frequencies, than the heavily parameterized models like the asymptotic relation.

Read the docs at


If you want to raise and issue or contribute code to PBjam, see the guidelines on contributing.


There are different ways to contribute to PBjam, the Scientific Influencers help guide the scientific aspects of PBjam, the Chaos Engineers try to break the code or simply report bugs, while the Main Contributors submit Pull Requests with somewhat bigger additions to the code or documentation.

Main Contributors Chaos Engineers Scientific Influencers
Lindsey Carboneau Warrick Ball Othman Benomar
Guy Davies Rafa Garcia Bill Chaplin
Oliver Hall Tanda Li Enrico Corsaro
Alex Lyttle Joel Ong Patrick Gaulme
Martin Nielsen

Mikkel Lund

Benoit Mosser

Andy Moya

Ian Roxburgh


If you use PBjam in your work please cite the PBjam paper (forthcoming), and if possible provide links to the GitHub repository.

We encourage PBjam users to also cite the packages and publications that PBjam makes use of. PBjam will automatically keep track of the publications that were used during a run, and can list them for you in bibtex format (see the Referencing Notebook).

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pbjam, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size pbjam-1.0.0-py3-none-any.whl (1.3 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pbjam-1.0.0.tar.gz (1.2 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page