The photo-z analysis pipeline with python
-
It's recommended to use photozpy in a conda environment. Follow the instructions on the Anaconda website for installation.
-
Create conda environment Open your terminal
conda create --name photozpy pip python=3.9
-
Activate conda environment In the terminal, run the following command to activate the photozpy environment
conda activate photozpy
-
Clone the photozpy GitHub to your local machine In the terminal, run the following command to download the photozpy
git clone https://github.com/Yong2Sheng/photozpy.git
Note that you might need to setup your ssh keys if it's your first time to clone a remote repository to your local machine.
-
Enter the photozy folder and install
photozpy
module into the photozpy environment>>> cd photozpy >>> pip install -e .
-
Once the installation is done, you can import and use
photozpy
module. Please go to the docs folder to try out the tutorial.