# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# # Listing your references with PBjam
# This tutorial will show you how to get PBjam to list the publications you have made use of when using the different parts of PBjam.
#
# Below we will use [session](https://pbjam.readthedocs.io/en/latest/session.html#pbjam.session.session) as an example, but the same methods apply to the [star](https://pbjam.readthedocs.io/en/latest/star.html#pbjam.star.star) class.
#
# When initializing a list of references will automatically be compiled for the setup part of the run. This list will be updated during your the run, depending on which parts of PBjam you use.

import pbjam as pb
sess = pb.session(ID='KIC4448777', 
                  numax=(220.0, 3.0), 
                  dnu=(16.97, 0.05), 
                  teff=(4750, 250), 
                  bp_rp=(1.34, 0.1),
                  path = '.')

# The references list in bibtex format can then be retrieved by using the references method. You can specify a optionally specify file to print the result to by using the bibfile argument.

sess.references(bibfile = 'myfile.bib')

# This list only contains the basic packages that PBjam uses when initializing the class (and Python itself of course).
#
# Now lets populate the list some more using by completing the peakbagging run.

sess(norders=7)

sess.references()

StarcoderdataJupyterScriptsDedupFiltered