Installation¶
Requirements¶
- Python >= 3.10
- A SAGE26 or SAGEswarm output directory (HDF5 format) and merger trees (lhalo_binary or lhalo_hdf5), or a LightSAGE
cli_lightconeHDF5 lightcone output
From source (recommended until PyPI release)¶
Optional: synthetic photometry (SED)¶
The LightSAGE synthetic-photometry stage (forward-modelling AB magnitudes for lightcone galaxies, used by Lightcone Mode's Photometry tab) needs FSPS and astropy, which are not installed by default:
python-fsps also requires its stellar-population data — set the SPS_HOME
environment variable to point at it (see the python-fsps install docs). Nothing
else in ViSAGE depends on FSPS; the viewer and every other flow run without it.
Verifying the install¶
Remote / HPC installation¶
A helper script is included for module-system clusters (Slurm, PBS, etc.):
# Load a Python module first (name varies by cluster)
module load python/3.12.0
# Create a venv and install ViSAGE in one step
./install_hpc.sh
# Optional: place the venv on scratch for faster I/O
./install_hpc.sh /scratch/$USER/visage-env
The install is editable (pip install -e .) so git pull updates the code immediately with no reinstall. ffmpeg is checked separately — load it via your module system if you need MOV recording.
In every subsequent session:
Then use SSH port-forwarding to view in your local browser:
Dependencies¶
| Package | Purpose |
|---|---|
| pyvista | 3D rendering (VTK wrapper) |
| trame | Web UI server |
| trame-vtk | Streams PyVista render window to browser |
| trame-vuetify | Vuetify 3 UI components |
| h5py | Reads SAGE HDF5 galaxy output |
| numpy | Array operations |
| scipy | KDE density computation, KDTree navigation |
| joblib | Parallel halo file loading |
| fsps, astropy | Optional ([sed]) — synthetic photometry / SED synthesis |