Tool (desktop application) for allowing the examination of Time of Flight (ToF) inelastic neutron data, from single crystal, direct geometry experiments.
Create and activate conda environment for shiver development
conda env create
# or
mamba env create
conda activate shiver
Install shiver (in editable mode) and start application
python -m pip install -e .
shiver
To start shiver from within the Mantid workbench, start
mantidworkbench
then run the following in the IPython
console
from shiver import Shiver
s=Shiver()
s.show()
Testing
To run all tests for shiver
pytest
#or
python -m pytest
To run pre-commit manually
pre-commit run --all-files
Or
To set the pre-commit hook before each git commit
pre-commit install
Automated Jobs
The repository runs automated tests on branches during Pull-Requests and on the main ones: next, main and qa. The jobs are described in .github/workflows/actions.yml:
-
Tests
. It includes pytest, pre-commit and code coverage tools -
Conda build
. A new conda package is built and uploaded to Anaconda, depending upon git tags and authorized branches. -
Trigger deploy
. Given that the two above jobs were successful, deployment is triggered.
Documentation Updates
When adding new views, presenters and methods, please navigate to docs/source/repo_doc.rst. Add the new feature under the appropriate section following the given template:
.. automodule:: path.to.new.module
:members:
Once complete, rebuild the documentation:
cd SHIVER/docs/
make clean
make html
https://shiver.readthedocs.io/en/latest/