Skip to content

Commit

Permalink
Merge pull request #208 from libAtoms/24_joss_response
Browse files Browse the repository at this point in the history
MAINT: Addressing JOSS review reports
  • Loading branch information
pastewka authored Jan 5, 2024
2 parents af3305e + 12f780c commit a4101ae
Show file tree
Hide file tree
Showing 42 changed files with 274 additions and 748 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- [macos-12, macosx, x86_64]
- [windows-2019, win, AMD64]

python: ["cp38", "cp39", "cp310", "cp311"]
python: ["cp38", "cp39", "cp310", "cp311", "cp312"]
fail-fast: false

env:
Expand All @@ -44,7 +44,7 @@ jobs:
python-version: '3.8'

- name: Build wheels
uses: pypa/cibuildwheel@v2.11.3
uses: pypa/cibuildwheel@v2.16.2
env:
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}*
CIBW_ARCHS: ${{ matrix.buildplat[2] }}
Expand Down
29 changes: 29 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
|Tests| |Wheels|

Matscipy
========

Expand Down Expand Up @@ -65,6 +67,28 @@ To run the tests locally, from Matscipy's root directory::
cd tests/
python3 -m pytest .

Editable installs
~~~~~~~~~~~~~~~~~

When developing `matscipy`, it can be useful to have an editable install of
the source directory. This means that changes to the source code are directly
reflected in the `matscipy` install. We are using *Meson* and *meson-python* as a
build system, and there are some `restriction to editable installs <https://meson-python.readthedocs.io/en/latest/how-to-guides/editable-installs.html>`__.

The editable install only works with the
`--no-build-isolation` option::

python3 -m pip install --no-build-isolation --editable .[test]

If you get the message::

ERROR: Tried to form an absolute path to a dir in the source tree.

then you are most likely try to install into a Python virtual environment that
is located inside your source directory. This is not possible; your virtual
environment needs to be located outside of the source directory.


Dependencies
------------

Expand All @@ -85,3 +109,8 @@ Funding

**matscipy** was partially funded by the Deutsch Forschungsgemeinschaft (project `258153560 <https://gepris.dfg.de/gepris/projekt/258153560>`__) and by the Engineering and Physical Sciences Research Council (grants `EP/P002188/1 <https://gow.epsrc.ukri.org/NGBOViewGrant.aspx?GrantRef=EP/P002188/1>`__, `EP/R012474/1 <https://gow.epsrc.ukri.org/NGBOViewGrant.aspx?GrantRef=EP/R012474/1>`__ and `EP/R043612/1 <https://gow.epsrc.ukri.org/NGBOViewGrant.aspx?GrantRef=EP/R043612/1>`__).

.. |Tests| image:: https://github.com/libAtoms/matscipy/actions/workflows/tests.yml/badge.svg
:target: https://github.com/libAtoms/matscipy/actions/workflows/tests.yml

.. |Wheels| image:: https://github.com/libAtoms/matscipy/actions/workflows/wheels.yml/badge.svg
:target: https://github.com/libAtoms/matscipy/actions/workflows/wheels.yml
2 changes: 0 additions & 2 deletions c/angle_distribution.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* ======================================================================
matscipy - Python materials science tools
https://github.com/pastewka/atomistica
https://github.com/libAtoms/matscipy
Copyright (2014) James Kermode, King's College London
Expand Down
2 changes: 0 additions & 2 deletions c/angle_distribution.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* ======================================================================
matscipy - Python materials science tools
https://github.com/pastewka/atomistica
https://github.com/libAtoms/matscipy
Copyright (2014) James Kermode, King's College London
Expand Down
2 changes: 0 additions & 2 deletions c/islands.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* ======================================================================
matscipy - Python materials science tools
https://github.com/pastewka/atomistica
https://github.com/libAtoms/matscipy
Copyright (2014) James Kermode, King's College London
Expand Down
2 changes: 0 additions & 2 deletions c/islands.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* ======================================================================
matscipy - Python materials science tools
https://github.com/pastewka/atomistica
https://github.com/libAtoms/matscipy
Copyright (2014) James Kermode, King's College London
Expand Down
2 changes: 0 additions & 2 deletions c/matscipymodule.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* ======================================================================
matscipy - Python materials science tools
https://github.com/pastewka/atomistica
https://github.com/libAtoms/matscipy
Copyright (2014) James Kermode, King's College London
Expand Down
2 changes: 0 additions & 2 deletions c/matscipymodule.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* ======================================================================
matscipy - Python materials science tools
https://github.com/pastewka/atomistica
https://github.com/libAtoms/matscipy
Copyright (2014) James Kermode, King's College London
Expand Down
2 changes: 0 additions & 2 deletions c/neighbours.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* ======================================================================
matscipy - Python materials science tools
https://github.com/pastewka/atomistica
https://github.com/libAtoms/matscipy
Copyright (2014) James Kermode, King's College London
Expand Down
2 changes: 0 additions & 2 deletions c/neighbours.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* ======================================================================
matscipy - Python materials science tools
https://github.com/pastewka/atomistica
https://github.com/libAtoms/matscipy
Copyright (2014) James Kermode, King's College London
Expand Down
2 changes: 0 additions & 2 deletions c/ring_statistics.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* ======================================================================
matscipy - Python materials science tools
https://github.com/pastewka/atomistica
https://github.com/libAtoms/matscipy
Copyright (2014) James Kermode, King's College London
Expand Down
2 changes: 0 additions & 2 deletions c/ring_statistics.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* ======================================================================
matscipy - Python materials science tools
https://github.com/pastewka/atomistica
https://github.com/libAtoms/matscipy
Copyright (2014) James Kermode, King's College London
Expand Down
2 changes: 0 additions & 2 deletions c/stack.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* ======================================================================
matscipy - Python materials science tools
https://github.com/pastewka/atomistica
https://github.com/libAtoms/matscipy
Copyright (2014) James Kermode, King's College London
Expand Down
2 changes: 0 additions & 2 deletions c/test_stack.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* ======================================================================
matscipy - Python materials science tools
https://github.com/pastewka/atomistica
https://github.com/libAtoms/matscipy
Copyright (2014) James Kermode, King's College London
Expand Down
2 changes: 0 additions & 2 deletions c/tools.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* ======================================================================
matscipy - Python materials science tools
https://github.com/pastewka/atomistica
https://github.com/libAtoms/matscipy
Copyright (2014) James Kermode, King's College London
Expand Down
2 changes: 0 additions & 2 deletions c/tools.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* ======================================================================
matscipy - Python materials science tools
https://github.com/pastewka/atomistica
https://github.com/libAtoms/matscipy
Copyright (2014) James Kermode, King's College London
Expand Down
108 changes: 108 additions & 0 deletions docs/tools/angle_distribution.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/tools/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ Analysis tools

neighbour_list
pair_distribution
angle_distribution
ring_analysis
setup_non-reactive_simulations
35 changes: 22 additions & 13 deletions docs/tools/pair_distribution.ipynb

Large diffs are not rendered by default.

17 changes: 0 additions & 17 deletions env.sh

This file was deleted.

Loading

0 comments on commit a4101ae

Please sign in to comment.