Begin by cloning the project repository locally. It is strongly recommended to do this inside a Python virtual environment:
$ git clone https://github.com/CausalityInMotion/BlockInverseGPFA.git
$ cd BlockInverseGPFAUse pip to install the package and its core dependencies:
$ pip install .If you also want to run tests or build documentation, you can install the appropriate optional dependencies:
For testing:
$ pip install .[test]
For documentation:
$ pip install .[docs]
To build the documentation, you will need the following packages:
- Sphinx: A documentation generator.
- Read the Docs Sphinx Theme: A theme for Sphinx that provides an elegant and readable documentation format.
After installing the documentation dependencies, generate the HTML documentation as follows:
$ cd docs
$ make htmlTo view the generated documentation in your browser:
$ open _build/html/index.html # On macOS
# OR
$ xdg-open _build/html/index.html # On Linux
# OR
$ start _build/html/index.html # On Windows (in cmd)Your documentation is now available for reference.
Alternatively, you can view the latest published documentation online:
📖 https://blockinversegpfa.readthedocs.io/en/latest/
This guide provides step-by-step instructions for installing the BlockInvGPFA package, running its test suite, and building its documentation using Python packaging standards.