Installation#

Requirements#

Install from PyPI#

pip install hklpy2-solvers

Note

Includes the ad_hoc solver.

Optional diffcalc solver#

The diffcalc solver requires the optional diffcalc-core backend. The ad_hoc solver works without it. Install the backend with either pip or conda:

pip install hklpy2-solvers[diffcalc]
conda install -c paulscherrerinstitute diffcalc-core

If the diffcalc solver is requested without diffcalc-core installed, a clear error explains how to install it.

Install for development#

git clone https://github.com/prjemian/hklpy2_solvers
cd hklpy2_solvers
pip install -e ".[dev]"

Install with documentation dependencies#

pip install -e ".[doc]"

Or install everything at once:

pip install -e ".[all]"