Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oriolabril/pymesa
Python scripts to analyze data from Modules for Experiments in Stellar Astrophysics using existing libraries to import data
https://github.com/oriolabril/pymesa
analyze-data astrophysics mesa python stellar-astrophysics
Last synced: 25 days ago
JSON representation
Python scripts to analyze data from Modules for Experiments in Stellar Astrophysics using existing libraries to import data
- Host: GitHub
- URL: https://github.com/oriolabril/pymesa
- Owner: OriolAbril
- License: gpl-3.0
- Created: 2017-02-27T16:22:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-02-18T15:36:05.000Z (almost 4 years ago)
- Last Synced: 2024-10-17T09:10:05.616Z (3 months ago)
- Topics: analyze-data, astrophysics, mesa, python, stellar-astrophysics
- Language: Python
- Homepage:
- Size: 158 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MESA utilities
Python scripts to analyze data from Modules for Experiments in Stellar Astrophysics using existing libraries to import data. In particular, the main difference with existing MESA-specific libraries, `pandas` module is used, allowing fast file reading.These codes are developed as a tool for my end of degree thesis. There are 2 kinds of files: scripts which make use of argparse in order to be executed directly from the command line and files containing collections of functions, which are inside the .
In order to be able to import the functions, the path of the repository has to be added with the `sys` module. Below there is an example of how to import the functions without the need of any `setup.py`:
import sys
sys.path.append('/path/to/pyMESA/')
import pymesa.tools as pymThere is also the option of using `PYTHONPATH` instead, see this [link](http://www.mantidproject.org/Using_Modules) for more info.
Many of the codes use already existing libraries to import and plot data
from MESA results:
- [mesaPlot](https://github.com/rjfarmer/mesaplot)
- [NuGridPy](https://github.com/NuGrid/NuGridPy)Therefore, they may require to have at least one of them installed. If both mesaPlot and nugridpy are correctly installed, all the codes should work properly.