Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nexus: Add dependency versions file + update docs #5256

Merged
merged 3 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
5 changes: 5 additions & 0 deletions nexus/requirements_minimal.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 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
17 changes: 14 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,17 @@ 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

``qmcpack/nexus/requirements_minimal.txt`` can be used similarly but only contains
a recently tested version of numpy.

The purpose of each library is described below:

**numpy** Needed throughout Nexus for array computation. Nexus will not
Expand Down Expand Up @@ -192,7 +203,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 +279,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
Loading