Skip to main content

Dynamic CPO calculations for olivine-enstatite polycrystal aggregates

Project description

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.

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

pydrex-0.0.1.tar.gz (464.3 kB view hashes)

Uploaded Source

Built Distribution

pydrex-0.0.1-py3-none-any.whl (343.0 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