961 B
961 B
Installation Guide
Requirements
- Python >= 3.9
- Dependencies listed in
pyproject.toml
Install from Source
- Clone the repository:
git clone <repository-url>
cd SP2XR_code/sp2xr
- Install the package:
pip install -e .
For Jupyter notebook support:
pip install -e ".[notebook]"
Dependencies
Core dependencies include:
dask[dataframe]>= 2024.6 - Parallel computingdask[distributed]- Distributed computing across multiple machinesdask-jobqueue- Integration with job schedulers (SLURM)pandas>= 2.2numpy>= 1.26pyyaml- YAML configuration file parsingpsutil- System and process utilities
Development Setup
Pre-commit Hooks
The repository uses pre-commit hooks for code quality:
pip install pre-commit
pre-commit install
Configured tools:
- Black: Code formatting
- Ruff: Linting and import sorting
Testing
pytest tests/