No project description provided
Project description
AstronomyCalc
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 Distributions
Built Distribution
File details
Details for the file AstronomyCalc-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: AstronomyCalc-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 981482645e7c8527569423c97f8a8bea067c55c9cd030b209d59557eac7a15cc |
|
MD5 | c4d26808dafb0eb94fec09cad4624c65 |
|
BLAKE2b-256 | db9444eddd17af25073d30a9518e666ec41ad81af136be577c07007b81d2a4ff |