Installation#
HiFAST maintains strict dependency versions and is tested primarily on Python 3.9. It is highly recommended to configure a dedicated Python environment.
Method 1: Online Installation#
If your server has internet access, create a fresh environment and install HiFAST directly from PyPI.
Option A: Using uv (Fastest)
Install uv (if not installed):
$ curl -LsSf https://astral.sh/uv/install.sh | sh
(See uv documentation for more details)
Create environment and install:
$ uv venv ~/hifast_env --python 3.9 $ source ~/hifast_env/bin/activate $ uv pip install hifast $ # For interactive features (Jupyter/Widgets): $ # uv pip install "hifast[interaction]"
Option B: Using conda
Install conda (if not installed):
It is recommended to use Miniconda3 or Miniforge3.
Create environment and install:
$ conda create -n hifast_env python=3.9 $ conda activate hifast_env $ pip install hifast $ # For interactive features (Jupyter/Widgets): $ # pip install "hifast[interaction]"
Method 2: Offline Installation#
For servers without internet access (e.g., CentOS 7), follow this full procedure to set up the environment and install HiFAST.
Configure Environment (using pre-packaged env):
Download
hifast_env.centos7.x86_64.v1.tar.gzandthreadpoolctl-3.1.0-py3-none-any.whlfrom https://pan.cstcloud.cn/s/QmkBVYgyRO8.Install the environment (only once):
$ mkdir ~/hifast_env $ tar -zxvf hifast_env.centos7.x86_64.v1.tar.gz -C ~/hifast_env $ source ~/hifast_env/bin/activate (hifast_env) $ conda-unpack (hifast_env) $ pip install threadpoolctl-3.1.0-py3-none-any.whl
Download HiFAST Package:
On a machine with internet access, visit the HiFAST PyPI page.
Click Release history (left sidebar) -> Select version.
Click Download files (left sidebar), scroll to the bottom, and download the corresponding
.whlfile (e.g.,hifast-1.4.0-py3-none-any.whl).
Warning
Do not modify the file name of the downloaded
.whlpackage, otherwisepipmay fail to install it.Install HiFAST:
Transfer the
.whlfile to your offline server and install:$ source ~/hifast_env/bin/activate (hifast_env) $ pip install hifast-X.Y.Z-py3-none-any.whl --upgrade
Method 3: Legacy Conda Environment File#
If you prefer using a specific yml configuration file:
Download
hifast_env.yml(orhifast_env.ARM64.ymlfor ARM).Create environment and install:
$ conda env create -n hifast_env --file hifast_env.yml $ conda activate hifast_env $ pip install hifast
Data Dependencies#
Noise diode temperature File:
From v1.4, HiFAST will automatically check and download the required Tcal files (from R2 or GitHub) when processing data. You generally do not need to download them manually.
For Offline Environments: If you need to use HiFAST in an environment without internet access, please refer to the Tcal documentation for instructions on how to prepare the data using the
update-allcommand and configure the offline mode.(The data source is this link)