Discvar is a Python library for discrete variable representation (DVR)
https://kenhino.github.io/Discvar/
-
The easiest way to install
discvaris to usepip.For instance, prepare Python 3.10 or later and execute
$ python -m venv discvar-env $ source discvar-env/bin/activate $ pip install git+https://github.com/KenHino/Discvar
-
we recommend install
discvarfrom source usinguv$ git clone https://github.com/KenHino/Discvar.git $ cd Discvar $ uv version uv 0.4.18 (7b55e9790 2024-10-01) $ uv syncThen, you can execute
discvarby$ uv run python xxx.py
or
$ source .venv/bin/activate $ python >>> import discvarFor jupyter notebook tutorials, you can use
$ uv run jupyter lab
$ cd tests/build $ uv run pytest ..You should install pre-commit hooks including ruff formatting and linting, mypy type checking, pytest testing, and so on.
$ uv run pre-commit install $ git add . $ uv run pre-commitBefore push, you must fix problems!!
Please feel free to give us feedback or pull requests.
