Skip to main content

Generic Python Materials Science tools

Project description

Tests Wheels

Matscipy

Matscipy is a generic materials science toolbox built around the Atomic Simulation Environment (ASE). It provides useful routines for:

  • Plasticity and dislocations

  • Fracture mechanics

  • Electro-chemistry

  • Tribology

  • Elastic properties

In addition to domain-specific routines, it also implements a set of general-purpose, low-level utilities:

  • Efficient neighbour lists

  • Atomic strain

  • Ring analysis

  • Correlation functions

  • Second order potential derivatives

Quick start

Matscipy can be installed on Windows, Linux and x86 macos with:

python3 -m pip install matscipy

To get the latest version directly (requires a working compiler):

python3 -m pip install git+https://github.com/libAtoms/matscipy.git

Compiled up-to-date wheels for Windows, Linux and x86 macos can be found here.

Documentation

Sphinx-generated documentation for the project can be found here. Since Matscipy is built on top of ASE’s Atoms and Calculator objects, ASE’s documentation is a good complement to Matscipy’s.

Seeking help

Issues can be used to ask questions about Matscipy.

Contributing

Contributions, in the form of bug reports, improvement suggestions, documentation or pull requests, are welcome.

Running tests

To run the tests locally, from Matscipy’s root directory:

python3 -m pip install .[test]  # installs matscipy + test dependencies
cd tests/
python3 -m pytest .

Editable installs

When developing matscipy, it can be useful to have an editable install of the source directory. This means that changes to the source code are directly reflected in the matscipy install. We are using Meson and meson-python as a build system, and there are some restriction to editable installs.

The editable install only works with the –no-build-isolation option:

python3 -m pip install --no-build-isolation --editable .[test]

If you get the message:

ERROR: Tried to form an absolute path to a dir in the source tree.

then you are most likely try to install into a Python virtual environment that is located inside your source directory. This is not possible; your virtual environment needs to be located outside of the source directory.

Dependencies

The package requires:

Optional packages:

Funding

matscipy was partially funded by the Deutsch Forschungsgemeinschaft (project 258153560) and by the Engineering and Physical Sciences Research Council (grants EP/P002188/1, EP/R012474/1 and EP/R043612/1).

Project details


Download files

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

Source Distribution

matscipy-0.8.1.tar.gz (12.4 MB view hashes)

Uploaded Source

Built Distributions

matscipy-0.8.1-cp312-cp312-win_amd64.whl (516.7 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

matscipy-0.8.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (399.3 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

matscipy-0.8.1-cp312-cp312-macosx_10_9_x86_64.whl (391.3 kB view hashes)

Uploaded CPython 3.12 macOS 10.9+ x86-64

matscipy-0.8.1-cp311-cp311-win_amd64.whl (516.5 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

matscipy-0.8.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (399.0 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

matscipy-0.8.1-cp311-cp311-macosx_12_0_arm64.whl (390.7 kB view hashes)

Uploaded CPython 3.11 macOS 12.0+ ARM64

matscipy-0.8.1-cp311-cp311-macosx_10_9_x86_64.whl (391.2 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

matscipy-0.8.1-cp310-cp310-win_amd64.whl (516.5 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

matscipy-0.8.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (399.0 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

matscipy-0.8.1-cp310-cp310-macosx_12_0_arm64.whl (390.7 kB view hashes)

Uploaded CPython 3.10 macOS 12.0+ ARM64

matscipy-0.8.1-cp310-cp310-macosx_10_9_x86_64.whl (391.2 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

matscipy-0.8.1-cp39-cp39-win_amd64.whl (516.6 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

matscipy-0.8.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (399.0 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

matscipy-0.8.1-cp39-cp39-macosx_12_0_arm64.whl (390.7 kB view hashes)

Uploaded CPython 3.9 macOS 12.0+ ARM64

matscipy-0.8.1-cp39-cp39-macosx_10_9_x86_64.whl (391.2 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

matscipy-0.8.1-cp38-cp38-win_amd64.whl (516.6 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

matscipy-0.8.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (399.8 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

matscipy-0.8.1-cp38-cp38-macosx_12_0_arm64.whl (391.1 kB view hashes)

Uploaded CPython 3.8 macOS 12.0+ ARM64

matscipy-0.8.1-cp38-cp38-macosx_10_9_x86_64.whl (391.6 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

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