Skip to main content

Binara

Code to fit the lightcurves of close main-sequence binary systems. It includes an analytical model for the lightcurves based on Engel 2020, and performs the fitting using a MCMC method.

Lightcurve Model

The lightcurve model includes flux contributions from Doppler beaming, reflection effects, ellipsoidal variations and eclipses. The changes in eclipse depths from limb darkening effects are also modeled. For a more detailed version of the

MCMC Fitting

Table of Contents

Installation

Downloading the code

The code is available on GitHub. Simply run:

# Clone the repository
git clone https://github.com/golmschenk/binara.git

cd binara

Building with CMake

Building with CMake is not necessary since the source code is contained in only three C files. However, it is extremely convenient. In your terminal, simply run:

# Install dependencies
cmake -B build

cd build

# Build the project
make -j

Note: Building with OpenMP support on some of the Apple machines with M1 or M2 chips may require you to specify a different compiler than AppleClang. E.g., if you have downloaded OpenMP and gcc via brew, you may instead want to do:

cmake -B build -D CMAKE_CXX_COMPILER=/opt/homebrew/bin/g++-14 \
-D CMAKE_C_COMPILER=/opt/homebrew/bin/gcc-14

Building Directly

The executable can also be compiled and linked directly.

mkdir build

gcc src/mcmc_wrapper.c src/likelihood.c src/util.c -O3 -fopenmp -o build/binara

Usage

Examples of how to use the project.

# Run the project

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

Contact

Siddhant Solanki - siddhant@umd.edu

Metadata

Release files for binara 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for binara 0.0.1
File Size Uploaded
binara-0.0.1.tar.gz 160.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for binara 0.0.1
File
binara-0.0.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 abi3 Linux glibc 2.17+ x86-64 Details
binara-0.0.1-cp312-abi3-macosx_14_0_arm64.whl CPython 3.12 abi3 macOS 14.0+ ARM64 Details
binara-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
binara-0.0.1-cp311-cp311-macosx_14_0_arm64.whl CPython 3.11 CPython 3.11 macOS 14.0+ ARM64 Details
binara-0.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
binara-0.0.1-cp310-cp310-macosx_14_0_arm64.whl CPython 3.10 CPython 3.10 macOS 14.0+ ARM64 Details
binara-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
binara-0.0.1-cp39-cp39-macosx_14_0_arm64.whl CPython 3.9 CPython 3.9 macOS 14.0+ ARM64 Details

Total release size: 2.2 MB

Release files / binara-0.0.1.tar.gz

Download URL binara-0.0.1.tar.gz
Size 160.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e1f5a2697d9edb88d63389dbce3aa33450fc9bcad781edda306e82c627ca5c16
BLAKE2b-256 checksum
How to use checksums
4b3e54821dccf80996efd8473b04674fc54e327ce670a317e6cd4592650e2f14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / binara-0.0.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL binara-0.0.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 168.6 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
bef81a1eaa476e860b52bcbd0b4517f332bb68af317aa3a2bc639a5a7972c89a
BLAKE2b-256 checksum
How to use checksums
788507ae1ac9f5927552ced0ad104653ccfeba90953edf815be3e4f1432f2bcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / binara-0.0.1-cp312-abi3-macosx_14_0_arm64.whl

Download URL binara-0.0.1-cp312-abi3-macosx_14_0_arm64.whl
Size 337.1 kB
Tags CPython 3.12 abi3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
7683b2a6db5ffcf1c43918ac87d0648714b9425827263e6d933c2a9e5a7c6951
BLAKE2b-256 checksum
How to use checksums
df58cafff66b89c884cf6abdbf320fce8bf67108d7c092dc5c6f05a8f4faef7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / binara-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL binara-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 170.9 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
60e6a534f6999deaa3c4ca987c5f0bb2b1c38c4593a8dc0c8ace216c814a4787
BLAKE2b-256 checksum
How to use checksums
a68cc9a2f648ea7d544fab939d6c7f51718b0be124f9379b007d7b4f3fd00e5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / binara-0.0.1-cp311-cp311-macosx_14_0_arm64.whl

Download URL binara-0.0.1-cp311-cp311-macosx_14_0_arm64.whl
Size 338.7 kB
Tags CPython 3.11 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
8ecb410470046fcc0e93ad63319c6f88a38901824dcaba6d7a8eee59c09805bd
BLAKE2b-256 checksum
How to use checksums
24684650d1a5bf6bb1a001730101c8cd4d83b6a8e7334a11d1a7b38f837cde62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / binara-0.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL binara-0.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 170.8 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
72524ac0dbc66003aef97346ecfbe1e5cd1b0de16e5bacb407e07aee39f7f4bd
BLAKE2b-256 checksum
How to use checksums
393fbdb5d60a41cbe85ae1a8b3d4d3d1b2f5775218444ae332ea0630572a3095
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / binara-0.0.1-cp310-cp310-macosx_14_0_arm64.whl

Download URL binara-0.0.1-cp310-cp310-macosx_14_0_arm64.whl
Size 338.7 kB
Tags CPython 3.10 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
dedacb9846bce24fd782140741d6dbf1d251553df89c575e39abf389fb3056c6
BLAKE2b-256 checksum
How to use checksums
6db067bbe42002b881be979f5c90162a5dae15659f6168c7b80ba2238f1c57ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / binara-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL binara-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 170.9 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
9d3a99127a7d65975b9dddb75fb1115941810e536efdfec1017832e285ef79dd
BLAKE2b-256 checksum
How to use checksums
4a3e6293a09ea7b25b35b94f90a042c5b2d32b433d838459ef1fd176347b317b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / binara-0.0.1-cp39-cp39-macosx_14_0_arm64.whl

Download URL binara-0.0.1-cp39-cp39-macosx_14_0_arm64.whl
Size 338.8 kB
Tags CPython 3.9 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
a0408886ba37ca58a409ed2164458920f49a5bdd3494adf8b9e855c8b479bc8d
BLAKE2b-256 checksum
How to use checksums
446b5133933e37afb3cf8c7784f6c64527bc8622e759d98c6dfadfc1499342c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release history Release notifications | RSS feed

This release

0.0.1 This release

9 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page