Installation¶
Requirements¶
online-fdr requires Python 3.8 or higher and has minimal dependencies:
numpy >= 1.20.0
scipy >= 1.9.0
Install from PyPI (Recommended)¶
The easiest way to install online-fdr is using pip:
Install with Optional Dependencies¶
For development and extended functionality:
Includes testing, linting, and type checking tools: -
pytest >= 7.0
- pytest-cov >= 4.0
- black >= 23.0
- ruff >= 0.1.0
- mypy >= 1.0
For building documentation locally: -
sphinx >= 5.0
- sphinx-rtd-theme >= 1.0
- myst-parser >= 0.18
Install from Source¶
For the latest development version or to contribute:
Using Git¶
Using uv (Recommended for Development)¶
uv provides faster and more reliable dependency management:
# Install uv if you haven't already
pip install uv
# Clone and install
git clone https://github.com/OliverHennhoefer/online-fdr.git
cd online-fdr
uv sync --all-extras
Development Setup¶
For contributors, set up a complete development environment:
git clone https://github.com/OliverHennhoefer/online-fdr.git
cd online-fdr
# Install with development dependencies
uv sync --all-extras
# Install pre-commit hooks
uv run pre-commit install
# Run tests to verify installation
uv run pytest
Verify Installation¶
Test your installation by running:
import online_fdr
from online_fdr.investing.addis.addis import Addis
# Create a simple test
addis = Addis(alpha=0.05, wealth=0.025, lambda_=0.25, tau=0.5)
result = addis.test_one(0.01)
print(f"ADDIS test result: {result}") # Should print: True
print(f"Package version: {online_fdr.__version__}")
Troubleshooting¶
Common Issues¶
Import Error: No module named 'online_fdr'
- Ensure you've activated the correct virtual environment
- Try reinstalling:
pip uninstall online-fdr && pip install online-fdr
numpy/scipy Version Conflicts
- Update your dependencies:
pip install --upgrade numpy scipy
- For conda users:
conda update numpy scipy
Permission Denied During Installation
- Use a virtual environment:
python -m venv venv && source venv/bin/activate
- Or install for current user only:
pip install --user online-fdr
Platform-Specific Notes¶
- Use PowerShell or Command Prompt
- If using Anaconda, activate your environment first:
- Xcode command line tools may be required for compiling dependencies
- Install with:
xcode-select --install
- Most distributions work out of the box
- For older systems, ensure you have a recent Python version
Virtual Environments¶
We strongly recommend using virtual environments to avoid dependency conflicts:
Next Steps¶
Once installed successfully:
- 📚 Read the Quick Start Guide for your first online FDR experiment
- 🔍 Browse Examples to see real-world applications
- 📖 Explore API Documentation for detailed method references
- 🧮 Study Theory to understand the mathematical foundations
Need Help?¶
- 📋 Check existing issues: GitHub Issues
- 💬 Ask questions: GitHub Discussions
- 🐛 Report bugs: Submit a new issue