Skip to content

vickyscowcroft/bayesian_pl_fitting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bayesian_pl_fitting

Adaptation of the Bayesian fitting code from Sesar et al. (2017)

Original Sesar et al. paper: https://ui.adsabs.harvard.edu/#abs/2017ApJ...838..107S/abstract

Requires GNU scientific library:

https://www.gnu.org/software/gsl/

On ubuntu may already be installed in /usr/include/gsl

Compiling likelihood_function_quad:

See command in README file and change paths accordingly:

Dust maps:

SFD Dust maps are in maps/ subdirectory

Add the following to .bash_profile (or corresponding python env init file:)

export DUST_DIR="/PATH/TO/bayesian_pl_fitting"

Don't need to add the /maps/ part at the end.

Running:

  • This version currently only running in Python 2.7

  • Can be run from command line as

./fit_PLRs.py

or in ipython with

ipython --pylab

run -i ./fit_PLRs.py 

About

adaptation of sesar+ 2017 bayesian fitting code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published