Installation
Prerequisites
Python 3.10 or higher
numpyscipyastropynumbamatplotlibtqdm(for progress bars)pyyaml(for configuration file handling)
Clone the Repository
First, clone the repository to your local machine:
git clone https://github.com/abhi0395/qsoabsfind.git
cd qsoabsfind
Set Up Environment
Option 1: Using Conda (Recommended, python>=3.9)
Create and activate a conda environment:
# Create environment with Python 3.9
conda create -n qsoabsfind python=3.9
conda activate qsoabsfind
# Install dependencies
conda install numpy scipy astropy numba matplotlib
conda install -c conda-forge pytest
Option 2: Using pip with virtual environment
# Create virtual environment
python -m venv qsoabsfind-env
source qsoabsfind-env/bin/activate # Linux/Mac
# Install dependencies
pip install numpy scipy astropy numba matplotlib pytest
Install Package
Install qsoabsfind (tagged version, stable and reproducible):
pip install --upgrade "git+https://github.com/abhi0395/qsoabsfind.git@vX.Y.Z"
Replace vX.Y.Z with the desired Git tag (for example v2.0.1).
For developers (editable mode installation):
pip install -e .
Run Unit tests
Verify the installation by running tests:
python -m unittest discover -s tests
Quick installation test
Test the installation:
python -c "import qsoabsfind; print(qsoabsfind.__version__)"
python -c "from qsoabsfind.parallel_convolution import parallel_convolution_search; print('Installation successful!')"
Description
To see available options and usage:
qsoabsfind --help