Skip to main content

Python package for conveniently plotting results from pulsar timing array bayesian analyses.

Project description

La Forge

https://img.shields.io/pypi/v/la_forge.svg https://img.shields.io/travis/Hazboun6/la_forge.svg Documentation Status

Pulsar Timing Array Bayesian Data Visualization

Graphic Credit: Stewart Vernon, via Deviant Art

Graphic Credit: Stewart Vernon, via Deviant Art

Python package for conveniently plotting results from pulsar timing array bayesian analyses. Many of the functions are best used with enterprise outputs.

Not yet available on PyPI, please use

pip install git+https://github.com/Hazboun6/la_forge@master

to install or run the setup.py script once cloned to your pc.

Example code

from la_forge import rednoise
from la_forge.core import Core
from la_forge import utils

normal_ul_dir = '../BF_standard/DE436/'
free_spec_ul_dir = '../BF_free_spec/DE436/'

a = Core('plaw',chaindir=normal_ul_dir)
b = Core('free_spec',chaindir=free_spec_ul_dir)

tspan = 11.4*365.25*24*3600

a.set_rn_freqs(Tspan=tspan)
b.set_rn_freqs(Tspan=tspan)

compare = [a,b]
plot_filename = './noise_model_plots.png'
Colors = ['blue','red']
Labels = ['PTA PLaw', 'PTA Free Spec']

rednoise.plot_rednoise_spectrum(pulsar=psr, cores=compare, chaindir=chaindir,
                                show_figure=True, rn_type='', verbose=False,
                                Tspan=tspan, Colors=Colors, n_plaw_realizations=100,
                                labels=Labels, plotpath=plot_filename)

Features

  • TODO

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2018-09-21)

  • First release on PyPI.

Project details


Download files

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

Source Distribution

la_forge-0.1.0.tar.gz (37.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page