Installation instructions
Install a released version
Download and install Anaconda, or, for a minimal installation, Miniconda.
The following command will set up a conda virtual environment, add the necessary package channels, and install CTLearn specified version and its dependencies:
For working on the IT-cluster:
Please do not forget to update your LD_LIBRARY_PATH to include the necessary paths. For example, you can add the following line to your .bashrc file: export LD_LIBRARY_PATH=/to/your/.conda/envs/ctlearn-it-cluster/lib:/fefs/aswg/workspace/tjark.miener/cudnn-linux-x86_64-8.9.7.29_cuda12-archive/lib:$LD_LIBRARY_PATH Note: You would need to replace the /to/your/.conda/envs/ctlearn-it-cluster/lib with the path to your conda environment where ctlearn is installed. cudnn-linux-x86_64-8.9.7.29_cuda12-archive is the path to the cuDNN libraries for CUDA 12.
Installing with pip/setuptools from source for development
First, install Anaconda by following the instructions above. Create a new conda environment that includes all the dependencies for CTLearn. Then, clone the CTLearn repository and install CTLearn into the new conda environment with pip from source:
mamba create -n ctlearn -c conda-forge python==3.12 llvmlite
conda activate ctlearn
cd </ctlearn/installation/path>
git clone https://github.com/ctlearn-project/ctlearn.git
pip install -e .
Dependencies
Python>=3.12
TensorFlow>=2.16
ctapipe>=0.29.0
ctaplot
DL1DataHandler>=0.14.8
numba
NumPy
Pandas
PyYAML
Libraries used only in plotting scripts (optional)
Matplotlib
Scikit-learn
ctaplot
Uninstall CTLearn
Remove Anaconda Environment
First, remove the conda environment in which CTLearn is installed and all its dependencies:
conda remove --name ctlearn --all
Remove CTLearn
Next, completely remove CTLearn from your system:
rm -rf </installation/path>/ctlearn