Skip to content

rohandahale/ehteval

Repository files navigation

Evaluation and validation scripts for black hole video reconstructions

Documentation PyPI version Python 3.9+ License: MIT

A unified driver to automate the evaluation pipeline for Sgr A* Dynamics project submissions.

Documentation

📚 Read the full documentation →

Installation

Conda Environment

Create and activate the conda environment using the provided environment.yml:

git clone https://github.com/rohandahale/ehteval.git
cd ehteval
conda env create -f environment.yml
conda activate evaluation

Julia Installation (Optional - for VIDA polarimetric analysis)

Julia is only required if you plan to run vida_pol.py for polarimetric ring fitting. If you don't need this feature, you can skip this section.

Install Julia 1.10.9 from juliaup:

curl -fsSL https://install.julialang.org | sh

source ~/.bashrc
juliaup add 1.10.9
juliaup default 1.10.9

Install the required Julia packages:

cd src
julia --project=. -e 'using Pkg; Pkg.instantiate()'

This reads the src/Project.toml and src/Manifest.toml to install packages including:

  • VIDA
  • VLBISkyModels
  • Comrade
  • Other optimization and data handling packages

Verify Installation

# Test Python environment
python -c "import ehtim; import numpy; import pandas; print('Python OK')"

# Test Julia packages (if installed)
julia --project=src -e 'using VIDA; using VLBISkyModels; println("Julia OK")'

Configuration

The entire run is configured via params.yml. Key parameters include:

  • Models: List of models to process
  • Run Settings: data_band, scattering, and pipeline (single choice per run)
  • Mode: Set is_bayesian: True for multiple-sample inputs (glob pattern) or False for single HDF5 inputs
  • Steps: Toggle specific evaluation modules (e.g., chisq, nxcorr, vida) in the run_steps section

Usage

Run the evaluation pipeline:

python evaluate.py params.yml

Output

Results are saved to: <results_dir>/<model>_<pipeline>/

The script copies the configuration file used into the results directory for reproducibility.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

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

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors