Skip to main content

No project description provided

Project description

About mesalab pipeline

DOI Documentation Status

⚠️NOTE: This project is currently under active development. Features and APIs may change, and new functionalities are continuously being added.

The Python package mesalab is designed for processing and analyzing stellar evolution simulations performed with MESA (Modules for Experiments in Stellar Astrophysics). It is developed to efficiently handle large grids of simulations, such as those where stellar mass (M) and metallicity (Z) are systematically varied.

The primary goal of this pipeline is to take your MESA outputs and automatically:

  1. Analyze each simulation within your grid.
  2. Identify if the star enters the blue loop phase and crosses the instability strip.
  3. Based on these findings, prepare GYRE input files and run the corresponding pulsation simulations.

Installation

Install from pip

To install mesalab with pip:

$ pip install mesalab

Building from Source (Recommended for Developers)

For scientific packages with complex dependencies like mesalab, we highly recommend using a conda environment to build from source. This ensures all binary dependencies are handled correctly, avoiding common compiler errors.

Step 1: Set up the conda environment (Python version between 3.9 and 3.11) Create a dedicated environment with all the necessary scientific packages. The conda-forge channel is required for some dependencies.

$ conda create --name mesalab_env python=3.9
$ conda activate mesalab_env
$ conda install -c conda-forge numpy pandas matplotlib scipy pyyaml tqdm numba swifter dask pyarrow h5py astropy

Step 2: Install mesalab from source Clone the repository and install the project in "editable" mode.

$ git clone https://github.com/konkolyseismolab/mesalab
$ cd mesalab
$ pip install -e .

Usage

To get started, you'll need to prepare a configuration file (e.g., config.yaml) that specifies your MESA input directories, output locations, and analysis preferences.

You can run mesalab by providing your configuration file:

$ mesalab --config myconfig.yaml

For a full list of command-line arguments and their descriptions, use the help command:

$ mesalab --help

For more detailed information on configuration options, command-line arguments, and advanced usage, please consult the official mesalab documentation on Read the Docs.


Contributing

If you're interested in improving mesalab, feel free to fork the repository, make your changes, and submit a pull request. You can also open an issue on GitHub if you encounter bugs or have feature suggestions.


License

This project is licensed under the MIT License - see the LICENSE file for details.

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

mesalab-2.1.3.tar.gz (90.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mesalab-2.1.3-py3-none-any.whl (75.9 kB view details)

Uploaded Python 3

File details

Details for the file mesalab-2.1.3.tar.gz.

File metadata

  • Download URL: mesalab-2.1.3.tar.gz
  • Upload date:
  • Size: 90.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.5

File hashes

Hashes for mesalab-2.1.3.tar.gz
Algorithm Hash digest
SHA256 3f705e3f6136283d06b9ab0198edaa08cc9864498b3177eddc9028217d7670cf
MD5 a72ddfc46b51c5e60a811fe85f0b3e27
BLAKE2b-256 8400177d0eac2bb38be2c1de3d4b8ed152b0437a818a8f891040415f8dabf0db

See more details on using hashes here.

File details

Details for the file mesalab-2.1.3-py3-none-any.whl.

File metadata

  • Download URL: mesalab-2.1.3-py3-none-any.whl
  • Upload date:
  • Size: 75.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.5

File hashes

Hashes for mesalab-2.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b9cf9af9f8e1f32af47f1dcc025f1371d8b23c9378ebf5adb4acb13cd7ce2f8a
MD5 82f0c713d30e55583aa00a95cb1e57d3
BLAKE2b-256 d48680540ff9f12084a1b9acc02703763d5bc143b35cb56783f006ef565174ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page