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
- hap files from the Fischer-Scope
- zip-files which include all the files of the Micromaterials NanoXtreme
- some common format which is based on the NeXus common data format
- Tif images from Zeiss 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 micromechanics
make -C docs html
python tests/testVerification.py
python tests/testAgilent_xls.py
python tests/testMicromaterials_hdf5.py
python tests/testFischerScope_hdf5.py
python tests/testAllFiles.py
These tests are also executed as github action once pushed.
or the short form to run all the tests
python -m unittest tests/test*
#TODO_P3 turn all tests into one github action
Then upload/create-pull-request to github, via
./commit.py 'my message'
How to find bugs that occurred in a past commit
Steps:
- Git history in nice ASCII => save in file in distant folder; along with notes
- go to point in history (do not change the present)
- find diff: always old^ new
- run your tests
- undo your changes since checkout
- go back to present
git log --oneline --graph
git checkout bf0b634
git diff e7eac50^ fed7119 #(old^ new)
# test
git reset --hard
git checkout main
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
File details
Details for the file micromechanics-1.1.21-py3-none-any.whl
.
File metadata
- Download URL: micromechanics-1.1.21-py3-none-any.whl
- Upload date:
- Size: 130.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1f051be1d0c379c2241386e192ffebafa655ccb5e9b8b605910d33bd8643b9f |
|
MD5 | 15d140bdb0b0afaef030213b2d0ea408 |
|
BLAKE2b-256 | 081849fce79029611b25c57bdf03a8d5fc27ae2b98abc0cb91a9580616d81022 |