Skip to main content

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.

Metadata

Release files for mesalab 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mesalab 2.2.0
File Size Uploaded
mesalab-2.2.0.tar.gz 92.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mesalab 2.2.0
File Interpreter ABI Platform
mesalab-2.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 170.4 kB

Release files / mesalab-2.2.0.tar.gz

Download URL mesalab-2.2.0.tar.gz
Size 92.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d2c871de38566c451a69ec79ff1ca653b1e213a918f47a35e40f35c53e59ba6e
BLAKE2b-256 checksum
How to use checksums
92cd9bd1496c360084bf968cc97297769b41633cdf4c90df84a15091ab3c8805
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / mesalab-2.2.0-py3-none-any.whl

Download URL mesalab-2.2.0-py3-none-any.whl
Size 78.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9acd09df5c7e62fcb94795d6f3e77703110832e5b74fd71e37d8a716cef2cc0d
BLAKE2b-256 checksum
How to use checksums
a367bcb0077c1eb0914746ded74223a1146811de43ac0b93f25fb30792345c9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

2.2.0 This release

2 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page