Base classes and helper routines for writing KIM Tests
Project description
kim-tools
KIMTestDriver and SingleCrystalTestDriver classes for creating OpenKIM Test Drivers, and helper routines for writing KIM Tests and Verification Checks. Documentation at https://kim-tools.readthedocs.io.
Contributing Guide (Under Construction)
All contributed functions, classes and methods should be documented with Google style docstrings (https://google.github.io/styleguide/pyguide.html#383-functions-and-methods) and should have type hints for all arguments and return values (https://docs.python.org/3/library/typing.html). The docstrings are automatically rendered into the API documentation. To check that this is working correctly, install the Python packages in docs/requirements-docs.txt and run make html in docs/. There are some warnings, but there should be no errors, and the rendered docstring in the appropriate module html (e.g., docs/build/html/kim_tools.ase.html) should have a properly rendered section for the functions, classes and methods you wrote. See kim_tools/test_driver/core.py for a variety of examples of docstrings.
The code has a simple test suite using pytest. See the various files named test_* in tests/ for examples and add tests for any code you write.
To confirm that your code will pass the linter and style checks, install pre-commit as in this guide: https://pre-commit.com/#quick-start. The checks will run every time you make a commit.
kim_tools/ase contains utility functions that can be used for interatomic calculations. It is inherited from merging https://github.com/openkim/kim-python-utils into this repo. Previously, it worked only with KIM Models. All new functions added to this module should support being passed both a KIM Model as a string, and an ASE Calculator object. See kim-tools/ase/core.py::get_isolated_energy_per_atom for an example. If you are working on or with existing functions in this module, try to upgrade it to this functionality.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kim_tools-0.4.10.tar.gz.
File metadata
- Download URL: kim_tools-0.4.10.tar.gz
- Upload date:
- Size: 902.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
192e7e5307971272c7fec06cc7a75ddf5eea7422ef709d0a48b6c848a42c6a00
|
|
| MD5 |
43fd69b0ce6b47dfd8de265bf5aedc87
|
|
| BLAKE2b-256 |
769b336410a20fbd7c2ed78ddca5e1afebc5993d0f1495284dde0d14814768b6
|
Provenance
The following attestation bundles were made for kim_tools-0.4.10.tar.gz:
Publisher:
release.yml on openkim/kim-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kim_tools-0.4.10.tar.gz -
Subject digest:
192e7e5307971272c7fec06cc7a75ddf5eea7422ef709d0a48b6c848a42c6a00 - Sigstore transparency entry: 1370690967
- Sigstore integration time:
-
Permalink:
openkim/kim-tools@dde5cd9bb60696a8a746caaa92ea74a45aa2d729 -
Branch / Tag:
refs/tags/v0.4.10 - Owner: https://github.com/openkim
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@dde5cd9bb60696a8a746caaa92ea74a45aa2d729 -
Trigger Event:
release
-
Statement type:
File details
Details for the file kim_tools-0.4.10-py3-none-any.whl.
File metadata
- Download URL: kim_tools-0.4.10-py3-none-any.whl
- Upload date:
- Size: 2.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
803efa9620fc2e3a5fb177bd52f40a0e574bca702518037ef628488393486749
|
|
| MD5 |
2e0c01fb1e89b629c769776926f707df
|
|
| BLAKE2b-256 |
ec0f32cde2354e66f09c4f0ca35c3eec2e76b826636261874ceb2b5e8c0c0bb4
|
Provenance
The following attestation bundles were made for kim_tools-0.4.10-py3-none-any.whl:
Publisher:
release.yml on openkim/kim-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kim_tools-0.4.10-py3-none-any.whl -
Subject digest:
803efa9620fc2e3a5fb177bd52f40a0e574bca702518037ef628488393486749 - Sigstore transparency entry: 1370691024
- Sigstore integration time:
-
Permalink:
openkim/kim-tools@dde5cd9bb60696a8a746caaa92ea74a45aa2d729 -
Branch / Tag:
refs/tags/v0.4.10 - Owner: https://github.com/openkim
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@dde5cd9bb60696a8a746caaa92ea74a45aa2d729 -
Trigger Event:
release
-
Statement type: