Installation

GalMEx is available as a Python package and can be installed via pip or cloned directly from GitHub for local development. It includes both a command-line interface (CLI) and a graphical user interface (GUI) via the galmex command.

Installing with pip

To install the latest released version from PyPI:

pip install galmex

This installs the galmex command, which launches the tool in either GUI or CLI mode depending on how it’s invoked.

Installing from source

To install the latest development version:

git clone https://github.com/vitorms99/galmex.git
cd galmex
pip install -e .

This installs GalMex in editable mode, meaning local changes to the code are immediately reflected.

Usage Modes

After installation, GalMEx can be launched in two main ways:

GUI mode (default):

galmex

CLI mode using a config file:

galmex path/to/config.json

You will be prompted before overwriting any existing output file. Logs and results are saved automatically.

Installing dependencies

If cloning manually, install required dependencies via:

pip install -r requirements.txt

Main dependencies include:

  • numpy

  • scipy

  • matplotlib

  • astropy

  • scikit-image

  • sep

  • tqdm

  • joblib

  • filelock

(Full list available in requirements.txt.)

Optional: SExtractor integration

To use the external SExtractor tool for object detection:

  1. Install via conda (recommended):

    conda install -c conda-forge astromatic-source-extractor
    
  2. Or install manually and create an alias:

    Add this to your .bashrc or .zshrc:

    export PATH="$PATH:/path/to/sextractor"
    alias sex='sextractor'
    

    Then restart your terminal and confirm with:

    sex -h