Installation Guide

This guide will walk you through installing HyFI from scratch, even if you have no previous installations.


Step 1: Install Miniforge (Mamba Package Manager)

Miniforge provides both conda and mamba package managers. We recommend using mamba as it’s significantly faster for package installation.

Download and install Miniforge from: https://conda-forge.org/download/

Choose the appropriate installer for your operating system and follow the installation instructions provided on the website.

Verify successful installation by opening a new terminal and running:

mamba --version

Step 2: Download HyFI

You have two options to get HyFI:

Option B: Using Git (For Developers)

If you plan to modify the code or stay up-to-date with the latest changes:

git clone https://github.com/sandrotruttmann/HyFI.git
cd HyFI
git checkout main

Step 3: Create the Mamba Environment

The hyfi.yaml file contains all the required dependencies.

  1. Create the environment using mamba:

    mamba env create -f hyfi.yaml
    

    This may take several minutes as it downloads and installs all required packages.

  2. Activate the environment:

    mamba activate hyfi
    

    You should see (hyfi) appear at the beginning of your terminal prompt.


Step 4: Install HyFI

Install HyFI using pip:

pip install .

This installs HyFI from the local source code into your mamba environment.


Step 5: Verify Installation

  1. Check that HyFI is installed:

    python -c "import hyfi; print(hyfi.__version__)"
    
  2. Check that the CLI works:

    hyfi --help
    

    You should see the HyFI command-line interface help text.


Step 6: Install ParaView (Optional, for 3D Visualization)

ParaView is a powerful open-source application for visualizing and analyzing 3D data. HyFI exports VTP files that can be opened in ParaView for interactive visualization of hypocenters, focal mechanisms, rupture planes, fault systems and others.

Download and Install ParaView

Download and install ParaView from the Official website: https://www.paraview.org/download/


Next Steps

You are now ready to run your first HyFI Analysis! Please continue to Quickstart.


Happy fault imaging! 🎉