Skip to main content

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

Micromechanics supports Python 3.9 and newer.

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

Issues

Open issues are tracked in the GitHub issue tracker.

Current known issues:

Notes

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

Metadata

Release files for micromechanics 1.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for micromechanics 1.3.5
File Interpreter ABI Platform Actions
micromechanics-1.3.5-py3-none-any.whl Python 3 none any Details for micromechanics-1.3.5-py3-none-any.whl

Release files / micromechanics-1.3.5-py3-none-any.whl

Download URL micromechanics-1.3.5-py3-none-any.whl
Size 282.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bfe93076ffd040bd48cdcc1b67d7fd16fbb0ac347ef5d0a036445fc310675aa5
BLAKE2b-256 checksum
How to use checksums
dc86e9d6ae3e3fa162cc1623f6308dee36483439df2b26817a3ccae198f054bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for micromechanics 1.3.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page