Skip to main content

No project description provided

Project description

AstronomyCalc

CI Status GitHub Repository PyPI version

This package introduces students to basic astronomical calculations and data analysis methods. More detailed documentation is available on the ReadTheDocs page. Additional Jupyter notebooks, designed to help learners explore concepts by adjusting parameters and observing their effects, will be regularly added to the notebooks folder.

Package details

The package provides tools for calculating and solving the following quantities and equations.

  • Friedmann equation
  • Cosmological distances
    • Comoving distance
    • Proper distance
    • Light-travel distance
    • Luminosity distance
    • Angular diameter distance
  • Age of the universe
  • Cosmological parameter inference
  • Galaxy rotation curves

INSTALLATION

One can install a stable version of this package using pip by running the following command::

pip install AstronomyCalc

This package is being actively under-development, which involves addition of new modules and bug fixes. In order to use the latest version, one can clone this package.

To install the package from source, one should clone this package running the following::

git clone https://github.com/sambit-giri/AstronomyCalc.git

To install the package in the standard location, run the following in the root directory::

python setup.py install

In order to install it in a separate directory::

python setup.py install --home=directory

One can also install the latest version using pip by running the following command::

pip install git+https://github.com/sambit-giri/AstronomyCalc.git

The dependencies should be installed automatically during the installation process. The list of required packages can be found in the requirements.txt file present in the root directory.

Tests

For testing, one can use pytest. To run all the test script, run the either of the following::

python -m pytest tests

CONTRIBUTING

If you find any bugs or unexpected behavior in the code, please feel free to open a Github issue. The issue page is also good if you seek help or have suggestions for us. For more details, please see here.

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

AstronomyCalc-1.0.0.tar.gz (10.3 MB view details)

Uploaded Source

Built Distribution

AstronomyCalc-1.0.0-py3-none-any.whl (65.0 MB view details)

Uploaded Python 3

File details

Details for the file AstronomyCalc-1.0.0.tar.gz.

File metadata

  • Download URL: AstronomyCalc-1.0.0.tar.gz
  • Upload date:
  • Size: 10.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.9

File hashes

Hashes for AstronomyCalc-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e1b7d9d7f6a7fd2821bf489c3f15e2e7156ffd33fd8ae980004374e702387f89
MD5 381ce9467d61cff0d67cfea7ffd4980c
BLAKE2b-256 9b04bde4fbb63272a401e183cf68aeda2f691bce1bafe70b28d637e7eadc69a8

See more details on using hashes here.

File details

Details for the file AstronomyCalc-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for AstronomyCalc-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8fcabd07a98708a049dfa608599e5f32cc33a2cd1deecc9299cacaf5081492e5
MD5 bc260dc44187c7f110c8a190d945255e
BLAKE2b-256 85ff67046ab8da60377961f492255b80de9fcf3d785dcf6569c3931d1e05330e

See more details on using hashes here.

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