Skip to content

Commit

Permalink
nexus dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
aannabe committed Dec 16, 2024
1 parent 80a9b57 commit 363e04a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
13 changes: 13 additions & 0 deletions nexus/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# While Nexus does not have strict version requirements, this requirements file
# corresponds to versions that have been tested and are known to work.
# Last updated: 2024/12/16

numpy==2.2.0
scipy==1.14.1
matplotlib==3.10.0
h5py==3.12.1
pydot==3.0.3
spglib==2.4.0 # Some functionality is broken in 2.5.0
pycifrw==4.4.6
cif2cell==2.1.0
seekpath==2.1.0
14 changes: 11 additions & 3 deletions nexus/sphinx_docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ working python environment exists.
Setting environment variables
-----------------------------

To make your Python installation (must be Python 2.x as 3.x is not supported)
To make your Python installation (must be Python 3.x, 2.x is no longer supported)
aware of Nexus, simply set the PYTHONPATH environment variable. For example, in bash this would look like:

.. code-block:: rest
Expand Down Expand Up @@ -76,6 +76,14 @@ listed with ``apt`` above on Debian systems), try ‘pip3‘:
pip3 install --user cif2cell
pip3 install --user seekpath

While Nexus does not have strict version requirements, most recent
dependency versions that have been tested and are known to work can be
found at ``qmcpack/nexus/requirements.txt``.
These specific library versions can be installed using the following command:
::

pip3 install --user -r requirements.txt

The purpose of each library is described below:

**numpy** Needed throughout Nexus for array computation. Nexus will not
Expand Down Expand Up @@ -192,7 +200,7 @@ in your ``PATH``. Installation is successful if all tests pass:
Only portions of Nexus consistent with your Python installed Python
libraries will be tested.

To run the tests with ``pytest`` (``pip install user pytest``), enter
To run the tests with ``pytest`` (``pip install --user pytest``), enter
the unit test directory and simply invoke the ``pytest`` command:

::
Expand Down Expand Up @@ -268,7 +276,7 @@ Assessing Test Coverage (Developer Topic)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Code coverage can be assessed by using the ``coverage`` tool
(``pip install user coverage``):
(``pip install --user coverage``):

::

Expand Down

0 comments on commit 363e04a

Please sign in to comment.