Skip to main content

No project description provided

Project description

AstronomyCalc

CI Status GitHub Repository

This package introduces students to basic astronomical and cosmological calculations. 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
  • Galaxy rotation curves

INSTALLATION

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-0.1.1.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

AstronomyCalc-0.1.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: AstronomyCalc-0.1.1.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.6

File hashes

Hashes for AstronomyCalc-0.1.1.tar.gz
Algorithm Hash digest
SHA256 453d82261998ad2af4a0ede7749db4755af5e79ed1069024026a1228340ec153
MD5 f88ffd3da95e4e21e65a0216a54d6aa9
BLAKE2b-256 377916567648180aa2a14d732d63df5edaac60cf42773e2042a515fec042eafa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for AstronomyCalc-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2257bd7b71508b41b5b41d187d0adf28949ad309254eb71c89d81d32b3798808
MD5 27a7d537209632d986f3ef2870867918
BLAKE2b-256 2b0c680d431547f4683a0e1ab10446049a8a4d81c5d317158be4d040ba35e66e

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