API Documentation Limitations#
Warning
The automatic API documentation extraction (autodoc) is currently limited on ReadTheDocs due to dependencies that require compilation (Cython extensions) or are not installed in the documentation build environment.
As a result, the API reference pages show the module structure but may not include detailed docstrings for all classes and functions.
Viewing Full API Documentation#
To view the full API documentation with all docstrings and function signatures, you have two options:
Option 1: Build Documentation Locally#
Clone the repository and install the package with all dependencies:
git clone https://github.com/epaillas/acm cd acm pip install -e ".[nersc,cosmodesi,docs]"
Build the documentation:
cd docs make html
Open
docs/_build/html/index.htmlin your browser
Option 2: Read Docstrings in Source Code#
You can view the docstrings directly in the source code on GitHub:
acm/hod - Galaxy-halo connection classes
acm/estimators - Clustering statistics estimators
acm/model - Emulator training and optimization
acm/observables - Observable handling classes
For Contributors#
If you’re working on improving the API documentation on ReadTheDocs, the main challenges are:
Cython Extensions: The package includes C/Cython extensions that require compilation
Heavy Dependencies: Dependencies like
abacusnbody,torch,pytorch_lightning, etc., are large and may have their own compilation requirementsImport Chains: Many modules import from modules that require these dependencies
Potential solutions being explored:
Mock all heavy dependencies more comprehensively
Create stub modules for documentation builds
Generate API documentation during package build and commit static files