Investigation of nanoindentation and SEM data
Project description
Micromechanics library for experimental micromechanics
This library allows to read datafiles from different nanoindenters and allows to analyse it by evaluating the hardness and Young's modulus using the Oliver-Pharr method. It also includes functions for frame stiffness and area function calibration as well as a number of plotting functions. Additionally the library allows to read SEM images and optimize them
The library can read:
- xls files from the vendors MTS, Agilent, Keysight, which produced the XP and G200 indenters
- txt files from FischerScope
- zip-files which include all the txt files of the Micromaterials NanoXtreme
- HDF5 files produced by the supported converters/common format
- Tif images from Zeiss, NPVE and FEI/ThermoFischer
Install by
pip install micromechanics
Run test using the default data
from micromechanics.indentation import Indentation
i = Indentation()
i.plotAll()
Alternatively, for Tif images
from micromechanics.tif import Tif
More information as well as tutorials can be found at: Read the docs
If you want to contribute to the development, we develop at github
Contributors
- Steffen Brinckmann
- Velislava Yonkova
- Ruomeng (Nicole) Chen
Information for developers
Test the code: linting, documentation and then the tests from project main directory
pylint $(git ls-files 'micromechanics/*/*.py')
mypy micromechanics
make -C docs html
These tests are also executed as github action once pushed.
or the short form to run all the tests
python -m unittest tests/test*
For convenience, all tests in one bash command
Check test coverage, including package code and the example files in docs/source/examples
python -m coverage erase
MPLBACKEND=Agg python -W ignore::UserWarning -m coverage run -m unittest tests/test* > coverage.txt
for f in docs/source/examples/plot_*.py; do MPLBACKEND=Agg python -W ignore::UserWarning -m coverage run --append "$f" >> coverage.txt; done
grep -P 'ERROR|Error|\*\*ERROR\*\*' coverage.txt
Coverage report for LLMs
python -m coverage report -m
For an HTML coverage report, run
python -m coverage html
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 Distributions
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 micromechanics-1.3.0-py3-none-any.whl.
File metadata
- Download URL: micromechanics-1.3.0-py3-none-any.whl
- Upload date:
- Size: 135.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0632e576d67dcf531f671057d1911184d6bff5d4ae09e047531f8e0d2f191de
|
|
| MD5 |
43a52c2302cdad68044d84ad5116ddc1
|
|
| BLAKE2b-256 |
ac27e39e9916e55625a9ae6075d01b5408150d1482c481d2f14b7757595ed9c9
|