Metadata-Version: 2.1
Name: tris
Version: 0.0.1
Summary: An open-source screening system for Trinary Star Candidates.
Home-page: https://three-body-analysis.github.io/codebase
License: MIT
Keywords: NASA,Kepler,TESS,Astronomy
Author: Vikram Ramanathan
Requires-Python: >=3.8
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Scientific/Engineering :: Astronomy
Requires-Dist: astropy (>=5.0)
Requires-Dist: matplotlib (>=3.1)
Requires-Dist: numpy (<=1.24)
Requires-Dist: pandas (>=1.1.4)
Requires-Dist: requests (>=2.22.0)
Requires-Dist: scipy (>=1.7) ; python_version >= "3.8" and python_version < "3.11"
Requires-Dist: tqdm (>=4.25.0)
Requires-Dist: urllib3 (>=1.23) ; python_version >= "3.8" and python_version < "4.0"
Requires-Dist: wotan (==1.10)
Requires-Dist: wquantiles (==0.6)
Project-URL: Bug Tracker, https://github.com/three-body-analysis/codebase/issues
Project-URL: Documentation, https://three-body-analysis.github.io/codebase
Project-URL: Repository, https://github.com/three-body-analysis/codebase
Description-Content-Type: text/markdown

# Tris

[![Python Package tests status](https://github.com/three-body-analysis/codebase/actions/workflows/python-package.yml/badge.svg)](https://github.com/three-body-analysis/codebase/actions?query=workflow%3Apython-package)
[![Python Package using Conda tests status](https://github.com/three-body-analysis/codebase/actions/workflows/python-package-conda.yml/badge.svg)](https://github.com/three-body-analysis/codebase/actions?query=workflow%3Apython-package-conda)
[![Docs CI status](https://github.com/three-body-analysis/codebase/actions/workflows/docs.yml/badge.svg)](https://three-body-analysis.github.io/codebase/)
[![PyPI Latest Release](https://img.shields.io/pypi/v/tris.svg)](https://pypi.org/project/tris/)

[//]: # ([![PyPI Downloads]&#40;https://img.shields.io/pypi/dm/tris.svg?label=PyPI%20downloads&#41;]&#40;https://pypi.org/project/tris/&#41;)


This repository comprises the codebase for our paper, "An Automated Screening System for Trinary Star System Candidates",
that has been submitted to _Physica Scripta_.

**Tris** is an open-source tool that offers a specialized method to determine "observed-minus-computed" (OC) diagrams from 
astronomical flux time series data (lightcurves) obtained from NASA's Kepler and K2 missions.

Here is a brief outline of the algorithm:

<p align="center">
    <img src="img/methodology.png" alt="Diagram of Algorithm"/><br>
    <span>Diagram of Algorithm.</span>
</p>

Basic Guide to Codebase
-------------

[//]: # (- `data` - Contains the acquired `.fits` files that contain the light curves for all objects classified as EBs.)
[//]: # (- `logbooks` - Personal Logbooks of us determining our ideal algorithm. It uses an older version of the codebase.)
- `datagen` - Contains the data generation and acquisition scheme to get the files in `data`.
- `docs` - Contains the documentation code for the codebase.
- `notebooks` - Notebooks to test our code and visualise them, and also to give examples of usage
- `pipelining` - Older versions of `datagen`.
- `old` - Older versions of `tris`. Also contains logbooks of our work.
- `tris` - Currently contains (early-stage) versions of our improved library code that will later be deployed on PyPI.
- `manual_classification.xlsx` - Post Algorithm Manual Classification done by us.

Do note that in our codebase, you will see references to a `data/` folder. This folder contains the acquired `.fits` 
files that contain the light curves for all objects classified as EBs. You can install this by running 
`datagen/load.sh`.

Documentation
-------------

Read the documentation at [`https://three-body-analysis.github.io/codebase/`](https://three-body-analysis.github.io/codebase/).


Setup and Installation
-------------

### Installing from PyPI

Yes, we have published `tris` on PyPI! To install `tris` and all its dependencies, the easiest method would be to use 
`pip` to query PyPI. This should, by default, be present in your Python installation. To, install run the following 
command in a terminal or Command Prompt / Powershell:

```bash
$ pip install tris
```

Depending on the OS, you might need to use `pip3` instead. If the command is not found, you can choose to use the
following command too:

```bash
$ python -m pip install tris
```

Here too, `python` or `pip` might be replaced with `py` or `python3` and `pip3` depending on the OS and installation 
configuration. If you have any issues with this, it is always helpful to consult 
[Stack Overflow](https://stackoverflow.com/).

### Installing from Source

To install from source, you need to get the following:

#### Git

Git is needed to install this repository. This is not completely necessary as you can also install the zip file for this 
repository and store it on a local drive manually. To install Git, follow 
[this guide](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).

After you have successfully installed Git, you can run the following command in a terminal / Command Prompt etc:

```bash
$ git clone https://github.com/three-body-analysis/codebase.git
```

This stores a copy in the folder `codebase`. You can then navigate into it using `cd codebase`.

#### Poetry

This project can be used easily via a tool know as Poetry. This allows you to easily reflect edits made in the original 
source code! To install `poetry`, you can also install it using `pip` by typing in the command as follows:

```bash
$ pip install poetry
```

Again, if you have any issues with `pip`, check out [here](#installing-from-pypi).

After this, you can use the following command to install this library:

```bash
$ poetry install
```
