Name | darkplotter JSON |
Version |
1.0.3
JSON |
| download |
home_page | None |
Summary | This package is an educational tool to teach undergradute students in astronomy about the gravitational potential and corresponding velocity curve as a function of radius for the Milky Way galaxy. After using this tool, students should understand that some form of dark matter must exist in order to explain the obsered velocity curve of the Milky Way. |
upload_time | 2024-07-19 14:19:49 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | MIT License Copyright (c) 2024 Bretton Simpson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
galactic dynamics
rotation curves
plummer model
galaxies
extragalactic astronomy
hernquist
jaffe
gravitational potential
dark matter
|
VCS |
|
bugtrack_url |
|
requirements |
astropy
astropy-iers-data
ipywidgets
matplotlib
numpy
plotly
Sphinx
sphinx-rtd-theme
sphinxcontrib-applehelp
sphinxcontrib-devhelp
sphinxcontrib-htmlhelp
sphinxcontrib-jquery
sphinxcontrib-jsmath
sphinxcontrib-napoleon
sphinxcontrib-qthelp
sphinxcontrib-serializinghtml
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
![Logo](https://media.discordapp.net/attachments/1254086159420887081/1263639533744816128/Untitled_design_1-removebg-preview.png?ex=669af786&is=6699a606&hm=07575cbb4f31e035fa7fc52002689a566673f61de68d9ac9693e1370776a3373&=&format=webp&quality=lossless&width=625&height=625)
[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)
![GitHub top language](https://img.shields.io/github/languages/top/brettonsimpson/group-13)
![A rectangular badge, half black half purple containing the text made at Code Astro](https://img.shields.io/badge/Made%20at-Code/Astro-blueviolet.svg)
![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/brettonsimpson/group-13)
# Dark Plotter
Dark Plotter is a Python package for visualizing velocity as a function of radius for the Milky Way galaxy in an interactive way. This Python package was developed as a project for the Code/Astro workshop in 2024. [Code/Astro 2024](https://github.com/semaphoreP/codeastro)
The study of the orbital velocity of the galactic disk has provided astronomers with insights into the nature of dark matter, a substance that is so far not well understood, despite composing approximately one-third of the universal energy density. The equations of gravity, both classic and relativistic, fail to explain why galactic rotation curves do not decay as quickly as we expect they should with increasing distance from the core. Mathematical models to describe the gravitational potential profiles for galaxies as a function of radius, including the Navarro-Frenk-White, Plummer, Hernquist, and Jaffe profiles offer different perspectives on a galaxy's mass and velocity distribution. However, researchers and students often face challenges in visualizing and comparing these models with observed data, emphasizing the need for an interactive tool to aid in the teaching and exploration of galactic dynamics. This tool enables the direct comparison of the observed Milky Way velocity profile with the included models.
# Attribution
If you use this code in your research work, please refer to the package by its name and cite the authors! If you have any questions, feel free to open an issue through GitHub.
# Getting Started
## Prerequisites
Before using this program, you'll need the following:
* Python 3.10 or higher installed on your system.
* Jupyter notebook.
## Installation
You can install **Dark Plotter** on Windows, MacOS, and Linux distributions. In either case, we assume that you have already installed the dependencies and the appropriate Python version. There are two options to install **Dark Plotter**:
## GitHub
You can install the latest sources from **Dark Plotter** by cloning the repository directly from GitHub:
```
git clone https://github.com/brettonsimpson/darkplotter
cd darkplotter
pip install darkplotter
```
Or, instead, use `pip` with the path to the repository:
```
pip install darkplotter@git+https://github.com/brettonsimpson/darkplotter
```
## PyPI
A stable compiled version of **Dark Plotter** is available on [PyPI](https://pypi.org/). You can install it by running:
```
pip install darkplotter
```
## Testing
If you have installed the development version of **Dark Plotter** or cloned the complete source code (e.g., from the GitHub repository), you can run the tests by executing the following commands:
```python
cd darkplotter
python -m unittest -v
```
## Usage
1. Open Jupyter notebook.
2. Import the darkplotter :
``` python
import darkplotter
```
3. Use the plot function to create the interactive rotation curve plots.
``` python
DarkPlotter.plot()
```
## Contribution
1. Fork the repository and create a new branch for your feature or bug fix.
2. Make your changes, and ensure that your code follows the PEP 8 style guide.
3. Write tests to cover your code if applicable.
4. Create a pull request with a clear description of your changes and why they are needed.
5. Your pull request will be reviewed, and once approved, it will be merged into the main branch.
## License
This project is licensed under the MIT License - see the [LICENSE](https://github.com/brettonsimpson/group-13/blob/develop/LICENSE) file for details.
## Acknowledgement
The success of this project is due to the contributions of many.
* Deep appreciation goes to the contributors of this repository. Their efforts and shared knowledge have been essential.
* The instructors and teaching assistants who led the workshop and provided invaluable guidance throughout are gratefully acknowledged.
* Special thanks are extended to Suchitra Narayana, the teaching assistant for the group. Their support, patience, and insights significantly aided in the completion of this project.
Raw data
{
"_id": null,
"home_page": null,
"name": "darkplotter",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "Keneth Garcia <stivengarcia7113@gmail.com>, Bretton Simpson <bsimpson@ucsd.edu>, Vyom Singh Rathore <rathorevyom04@gmail.com>, Dionysis Gakis <dgakis5@gmail.com>, Elizabeth Moreno <Elizabeth@example.com>",
"keywords": "Galactic Dynamics, Rotation Curves, Plummer Model, Galaxies, Extragalactic Astronomy, Hernquist, Jaffe, Gravitational Potential, Dark Matter",
"author": null,
"author_email": "\"Garcia-Cifuentes, K.\" <stivengarcia7113@gmail.com>, Bretton Simpson <bsimpson@ucsd.edu>, Elizabeth Moreno <Elizabeth@example.com>, Vyom Singh Rathore <rathorevyom04@gmail.com>, Dionysis Gakis <dgakis5@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/35/24/9e63ededc478707c88e1a5a1a68e41cc4c2363197c0e58a481bd13dca02e/darkplotter-1.0.3.tar.gz",
"platform": null,
"description": "![Logo](https://media.discordapp.net/attachments/1254086159420887081/1263639533744816128/Untitled_design_1-removebg-preview.png?ex=669af786&is=6699a606&hm=07575cbb4f31e035fa7fc52002689a566673f61de68d9ac9693e1370776a3373&=&format=webp&quality=lossless&width=625&height=625) \n\n[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)\n\n![GitHub top language](https://img.shields.io/github/languages/top/brettonsimpson/group-13)\n\n![A rectangular badge, half black half purple containing the text made at Code Astro](https://img.shields.io/badge/Made%20at-Code/Astro-blueviolet.svg)\n\n![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/brettonsimpson/group-13)\n\n\n# Dark Plotter\n\nDark Plotter is a Python package for visualizing velocity as a function of radius for the Milky Way galaxy in an interactive way. This Python package was developed as a project for the Code/Astro workshop in 2024. [Code/Astro 2024](https://github.com/semaphoreP/codeastro)\n\nThe study of the orbital velocity of the galactic disk has provided astronomers with insights into the nature of dark matter, a substance that is so far not well understood, despite composing approximately one-third of the universal energy density. The equations of gravity, both classic and relativistic, fail to explain why galactic rotation curves do not decay as quickly as we expect they should with increasing distance from the core. Mathematical models to describe the gravitational potential profiles for galaxies as a function of radius, including the Navarro-Frenk-White, Plummer, Hernquist, and Jaffe profiles offer different perspectives on a galaxy's mass and velocity distribution. However, researchers and students often face challenges in visualizing and comparing these models with observed data, emphasizing the need for an interactive tool to aid in the teaching and exploration of galactic dynamics. This tool enables the direct comparison of the observed Milky Way velocity profile with the included models. \n\n# Attribution\nIf you use this code in your research work, please refer to the package by its name and cite the authors! If you have any questions, feel free to open an issue through GitHub.\n\n# Getting Started\n\n## Prerequisites\n\nBefore using this program, you'll need the following:\n\n* Python 3.10 or higher installed on your system.\n* Jupyter notebook.\n\n## Installation\n\nYou can install **Dark Plotter** on Windows, MacOS, and Linux distributions. In either case, we assume that you have already installed the dependencies and the appropriate Python version. There are two options to install **Dark Plotter**:\n\n## GitHub\n\nYou can install the latest sources from **Dark Plotter** by cloning the repository directly from GitHub:\n```\ngit clone https://github.com/brettonsimpson/darkplotter\ncd darkplotter\npip install darkplotter\n```\nOr, instead, use `pip` with the path to the repository:\n```\npip install darkplotter@git+https://github.com/brettonsimpson/darkplotter\n```\n\n## PyPI\nA stable compiled version of **Dark Plotter** is available on [PyPI](https://pypi.org/). You can install it by running:\n```\npip install darkplotter\n```\n\n## Testing\n\nIf you have installed the development version of **Dark Plotter** or cloned the complete source code (e.g., from the GitHub repository), you can run the tests by executing the following commands:\n\n```python\ncd darkplotter\npython -m unittest -v\n```\n\n## Usage\n\n1. Open Jupyter notebook.\n\n2. Import the darkplotter :\n``` python\nimport darkplotter\n```\n3. Use the plot function to create the interactive rotation curve plots.\n``` python\nDarkPlotter.plot()\n```\n\n## Contribution\n1. Fork the repository and create a new branch for your feature or bug fix.\n\n2. Make your changes, and ensure that your code follows the PEP 8 style guide.\n\n3. Write tests to cover your code if applicable.\n\n4. Create a pull request with a clear description of your changes and why they are needed.\n\n5. Your pull request will be reviewed, and once approved, it will be merged into the main branch.\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/brettonsimpson/group-13/blob/develop/LICENSE) file for details.\n\n## Acknowledgement\nThe success of this project is due to the contributions of many.\n\n* Deep appreciation goes to the contributors of this repository. Their efforts and shared knowledge have been essential.\n* The instructors and teaching assistants who led the workshop and provided invaluable guidance throughout are gratefully acknowledged.\n* Special thanks are extended to Suchitra Narayana, the teaching assistant for the group. Their support, patience, and insights significantly aided in the completion of this project.\n\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2024 Bretton Simpson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "This package is an educational tool to teach undergradute students in astronomy about the gravitational potential and corresponding velocity curve as a function of radius for the Milky Way galaxy. After using this tool, students should understand that some form of dark matter must exist in order to explain the obsered velocity curve of the Milky Way.",
"version": "1.0.3",
"project_urls": {
"documentation": "https://github.com/brettonsimpson/darkplotter",
"homepage": "https://github.com/brettonsimpson/darkplotter"
},
"split_keywords": [
"galactic dynamics",
" rotation curves",
" plummer model",
" galaxies",
" extragalactic astronomy",
" hernquist",
" jaffe",
" gravitational potential",
" dark matter"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8673497fccd57eb464a55ee5d7305a0630f19cb5df2cb8762b65d5004c12acbd",
"md5": "174b90efdead4b347550b1a5e53ad66b",
"sha256": "95cf8347607b2f4ccdb4b64a273430164c137570f2b47cacb1b5df675af849d9"
},
"downloads": -1,
"filename": "darkplotter-1.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "174b90efdead4b347550b1a5e53ad66b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 5358,
"upload_time": "2024-07-19T14:19:47",
"upload_time_iso_8601": "2024-07-19T14:19:47.835387Z",
"url": "https://files.pythonhosted.org/packages/86/73/497fccd57eb464a55ee5d7305a0630f19cb5df2cb8762b65d5004c12acbd/darkplotter-1.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "35249e63ededc478707c88e1a5a1a68e41cc4c2363197c0e58a481bd13dca02e",
"md5": "3c25bf5befa1dddd9f91dea5bcec128f",
"sha256": "0304817fa2a370f1d9dbd2eac3a05ca9cd1f219d38352021b29fe6abd80466b8"
},
"downloads": -1,
"filename": "darkplotter-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "3c25bf5befa1dddd9f91dea5bcec128f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 5386,
"upload_time": "2024-07-19T14:19:49",
"upload_time_iso_8601": "2024-07-19T14:19:49.709243Z",
"url": "https://files.pythonhosted.org/packages/35/24/9e63ededc478707c88e1a5a1a68e41cc4c2363197c0e58a481bd13dca02e/darkplotter-1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-19 14:19:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "brettonsimpson",
"github_project": "darkplotter",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "astropy",
"specs": []
},
{
"name": "astropy-iers-data",
"specs": []
},
{
"name": "ipywidgets",
"specs": [
[
"==",
"8.1.3"
]
]
},
{
"name": "matplotlib",
"specs": []
},
{
"name": "numpy",
"specs": []
},
{
"name": "plotly",
"specs": []
},
{
"name": "Sphinx",
"specs": [
[
"==",
"5.3.0"
]
]
},
{
"name": "sphinx-rtd-theme",
"specs": [
[
"==",
"2.0.0"
]
]
},
{
"name": "sphinxcontrib-applehelp",
"specs": [
[
"==",
"1.0.8"
]
]
},
{
"name": "sphinxcontrib-devhelp",
"specs": [
[
"==",
"1.0.6"
]
]
},
{
"name": "sphinxcontrib-htmlhelp",
"specs": [
[
"==",
"2.0.5"
]
]
},
{
"name": "sphinxcontrib-jquery",
"specs": [
[
"==",
"4.1"
]
]
},
{
"name": "sphinxcontrib-jsmath",
"specs": [
[
"==",
"1.0.1"
]
]
},
{
"name": "sphinxcontrib-napoleon",
"specs": [
[
"==",
"0.7"
]
]
},
{
"name": "sphinxcontrib-qthelp",
"specs": [
[
"==",
"1.0.7"
]
]
},
{
"name": "sphinxcontrib-serializinghtml",
"specs": [
[
"==",
"1.1.10"
]
]
}
],
"lcname": "darkplotter"
}