Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

micromechanics-1.3.4-py3-none-any.whl (282.7 kB view details)

Uploaded Python 3

File details

Details for the file micromechanics-1.3.4-py3-none-any.whl.

File metadata

  • Download URL: micromechanics-1.3.4-py3-none-any.whl
  • Upload date:
  • Size: 282.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for micromechanics-1.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5062cf77e1c4097f87977d4526bd5b257a9c78bf244e22f2280f37c06312b84b
MD5 edfb9159bc3e5f98fe2e83d5cc6f6f03
BLAKE2b-256 9ff20b0c60cbc9a38b55f2eb9ffe46f0d2ae12e897e56281d40c1ca5a1c8468b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page