Skip to main content

PyDRex

PyDRex logo

Simulate crystallographic preferred orientation evolution in polycrystals

This repository contains a Python 3 reimplementation of the D-Rex model for the evolution of crystallographic preferred orientation in polycrystals. The code is available for use under the GNU GPL v3 license. Documentation is accessible via Python's REPL help() and also online.

Install

Check requires-python in pyproject.toml for the minimum required Python version. The software is tested on Linux, MacOS and Windows.

The package is currently not available on PyPi, so installation requires git. Install the package with Python's pip:

pip install git+https://github.com/adigitoleo/PyDRex#egg=pydrex

Alternatively, clone the source code. and execute pip install "$PWD" in the top-level folder. To install additional dependencies required only for the test suite, use pip install "$PWD[test]".

For a complete development install, including documentation generator dependencies, use pip install -e "$PWD[dev]".

The package metadata and full list of dependencies are specified in pyproject.toml.

Optional mesh generation using gmsh is available, however the gmsh module requires the glu library (that may not be installed by default on all systems).

Test

Some tests can optionally output figures or extended diagnostics when run locally. Check the test suite README for details.

Documentation

The documentation can be built offline using pdoc, with the command:

pdoc -t docs/template -o html --math pydrex tests

which will output the html documentation into a folder called html. The homepage will be html/index.html. See also the provided GitHub actions workflow.

Metadata

Release files for pydrex 0.0.1

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

Source distribution (sdist)

Source distribution for pydrex 0.0.1
File Size Uploaded Provenance Actions
pydrex-0.0.1.tar.gz 464.3 kB Without provenance Details for pydrex-0.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 807.3 kB

Release files / pydrex-0.0.1.tar.gz

Download URL pydrex-0.0.1.tar.gz
Size 464.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4cf4623b925479fc3c77362131797c0dfa374a5d181122f7f3e66fe1bf4c78c3
BLAKE2b-256 checksum
How to use checksums
140551da8297f444e9c4250d7b77d296d758131c7b64e20cd3ee26461403cba7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / pydrex-0.0.1-py3-none-any.whl

Download URL pydrex-0.0.1-py3-none-any.whl
Size 343.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cebcee6c18a878d0fca4605f2dcbaa0ec7a019efe74738f620866d6f2a980048
BLAKE2b-256 checksum
How to use checksums
062ef039e5a7993ee9521333987817752624f497abf3672bc58a34d14982553f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Security for pydrex 0.0.1

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.

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