Skip to content

KIPAC/bolo-calc

Repository files navigation

The bolo-calc package

Background

The package is ported from a previous implementation of Bolometric calculations written by Charlie Hill (https://chillphysics.com/about/) and available at: https://github.com/chill90/BoloCalc

As of the initial version, the overall flow of the computation, as well as the set of configurable parameters, the ouputs and the equations used to perform the calculations are taken from the original version. This version changes the way in which the configuration is handled, and vectorized the computations.

Set-up and testing

Setup from bash

git clone https://github.com/KIPAC/bolo-calc.git
cd bolo-calc
python setup.py develop # this works better than python setup.py install for now b/c the example configuration files live in the package

Download atmosphere file

scripts/update_atm.py

Running unit tests from bash (from top-level bolo-calc directory)

pip install pytest
py.test

Demo

Running script (from top-level bolo-calc directory)

scripts/bolo-calc.py -i config/myExample.yaml -o test.fits

Running jupyter notebooks (from top-level bolo-calc directory)

jupyter-notebook nb/bolo_example.ipynb  # run this one first
jupyter-notebook nb/tables_example.ipynb

People

License, etc.

This is open source software, available under the BSD license. If you are interested in this project, please do drop us a line via the hyperlinked contact names above, or by writing us an issue.