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

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

Metadata

Release files for micromechanics 1.3.4

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.4
File Interpreter ABI Platform
micromechanics-1.3.4-py3-none-any.whl Python 3 none any Details

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

Download URL micromechanics-1.3.4-py3-none-any.whl
Size 282.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5062cf77e1c4097f87977d4526bd5b257a9c78bf244e22f2280f37c06312b84b
BLAKE2b-256 checksum
How to use checksums
9ff20b0c60cbc9a38b55f2eb9ffe46f0d2ae12e897e56281d40c1ca5a1c8468b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

1.3.4 This release

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.1

1 release file

1.1.21

1 release file

1.1.20

1 release file

1.1.19

1 release file

1.1.18

1 release file

1.1.17

1 release file

1.1.16

1 release file

1.1.15

1 release file

1.1.14

1 release file

1.1.13

1 release file

1.1.12

1 release file

1.1.11

1 release file

1.1.10

1 release file

1.1.9

1 release file

1.1.8

1 release file

1.1.7

1 release file

1.1.6

1 release file

1.1.5

1 release file

1.1.4

1 release file

1.1.3

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.5

1 release file

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