Dynamic CPO calculations for olivine-enstatite polycrystal aggregates
Project description
PyDRex
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydrex-0.0.1.tar.gz.
File metadata
- Download URL: pydrex-0.0.1.tar.gz
- Upload date:
- Size: 464.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cf4623b925479fc3c77362131797c0dfa374a5d181122f7f3e66fe1bf4c78c3
|
|
| MD5 |
58561de2a65ceecc4e304d40952678cd
|
|
| BLAKE2b-256 |
140551da8297f444e9c4250d7b77d296d758131c7b64e20cd3ee26461403cba7
|
File details
Details for the file pydrex-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pydrex-0.0.1-py3-none-any.whl
- Upload date:
- Size: 343.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cebcee6c18a878d0fca4605f2dcbaa0ec7a019efe74738f620866d6f2a980048
|
|
| MD5 |
63b8b92d835531ebf4a76a1a61085231
|
|
| BLAKE2b-256 |
062ef039e5a7993ee9521333987817752624f497abf3672bc58a34d14982553f
|