A collection of tools used for error handling. These tools provide a linked list class which can help a user both understand where an error happened and also help the developer to correct for the errors.
- Documentation: https://aea.re-pages.lanl.gov/material-models/tardigrade_error_tools
- Wiki: https://re-git.lanl.gov/aea/material-models/tardigrade_error_tools/-/wikis/home
- Nathan Miller [email protected]
- Kyle Brindley [email protected]
- CMake >= 3.14
- Doxygen >= 1.8.5
- Sphinx >= 3.0.4
- Breathe >= 4.30.0
- sphinx_rtd_theme >= 0.4.3
For convenience, the minimal Python environment requirements for the
documentation build are included in environment.txt
. A minimal anaconda
environment for building the documentation can be created from an existing
anaconda installation with the following commands.
$ conda create --file environment.txt
Warning
API Health Note: The Sphinx API docs are a work-in-progress. The doxygen API is much more useful
Activate a [W-13 Python Environment](https://xcp-confluence.lanl.gov/display/PYT/The+W-13+Python+3+environment)
$ sv3r
Create the build directory and move there
$ cd build/
Run cmake configuration
$ cmake ..
Build the docs
$ cmake --build docs
Sphinx HTML Documentation builds to:
tardigrade_error_tools/build/docs/sphinx/html/index.html
Display docs
$ firefox docs/sphinx/html/index.html &
While the Sphinx API is still a WIP, try the doxygen API
$ firefox docs/doxygen/html/index.html &
Follow the steps for building the documentation and pick up below.
Build just the library
$ pwd /path/to/tardigrade_error_tools/build $ cmake --build src/cpp
Build the entire before performing the installation.
Build the entire project
$ pwd /path/to/tardigrade_error_tools/build $ cmake --build . --target all
Install the library
$ pwd /path/to/tardigrade_error_tools/build $ cmake --install . --prefix path/to/root/install # Example local user (non-admin) Linux install $ cmake --install . --prefix /home/$USER/.local # Example install to conda environment $ cmake --install . --prefix path/to/conda/environment/ # Example install to W-13 CI/CD conda environment performed by CI/CD institutional account $ cmake --install . --prefix /projects/aea_compute/release
A python interface to the tardigrade_error_tools
C++ routines is provided. After the
libraries have been built, they can be linked so that they can be called with
python.
Build the libraries
$ pwd /path/to/tardigrade_error_tools/build $ cmake --build . --target all
Activate a [W-13 Python Environment](https://xcp-confluence.lanl.gov/display/PYT/The+W-13+Python+3+environment)
$ sv3r
in the
src/python
directory build the interface usingcython
$ python setup.py build_ext --inplace