Skip to main content

Investigation of nanoindentation and SEM data

Project description

Linting Documentation pypi.org Tests

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


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

micromechanics-1.1.21-py3-none-any.whl (130.9 kB view hashes)

Uploaded Python 3

Supported by

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