The EBSD Lab for Python
Project description
ebsdlab
ALPHA-VERSION: TRY AT OWN RISK
Electron Backscatter Diffraction (EBSD) is a microanalytical technique used in scanning electron microscopes to determine the crystallographic orientation of metals at the micrometer scale. This software package provides tools to import, analyze, and visualize the spatially resolved orientation data obtained from EBSD experiments, facilitating microstructural characterization.
Features:
- File formats accepted .ang | .osc | .crc | .txt
- can write .ang for FCC. Others could be added
- fast plotting interaction using virtual mask (only used for plotting)
- increases speed in intermediate test plots
- can be removed just before final plotting
- verified with the OIM software and mTex
- heavily tested for cubic
- separate crystal orientation and plotting of it
- some educational plotting
- examples and lots of documentation
Example
EBSD-Inverse Pole Figure (IPF) of polycrystalline Copper with corresponding Pole Figure
Documentation
Installation
You can install ebsdlab using Conda or pip.
Using Conda
Clone the repository:
$ git clone https://github.com/micromechanics/ebsdlab.git ./ebsdlab
$ cd ebsdlab
Create and activate the Conda environment:
The environment.yml file defines the necessary dependencies.
$ conda env create -f environment.yml
After creation, activate the environment:
$ conda activate ebsdlab_env
Install the ebsdlab package:
With the Conda environment activated, install the package using pip:
$ python -m pip install .
Using Pip
Set up a Python environment: Using a virtual environment prevents conflicts with other projects.
$ python -m venv venv_python_ebsd # Create a virtual environment
$ For Linux/macOS: source venv_python_ebsd/bin/activate
$ For Windows: venv_python_ebsd\Scripts\activate
Install the ebsdlab package:
This command will install the package and dependencies:
$ pip install git+https://github.com/micromechanics/ebsdlab
After that, the package can be imported and used in Python codes as
>>> from ebsdlab import EBSD
>>> emap = EBSD("Examples/EBSD.ang")
>>> emap.plot(e.CI)
FAQ
What features I do not envision:
- include all crystal symmetries (materials science can mostly live with few)
- other Euler angle definitions than Bunge; materials science does not use those
Future features
- improve cleaning
- grain identification methods
- speed up simulation
- add different symmetries than cubic, and test
Help wanted
- sample files other than copper OIM files
- feedback on tutorials
- any feedback on functionality
- help with cleaning and grain identification
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 ebsdlab-0.0.6.tar.gz.
File metadata
- Download URL: ebsdlab-0.0.6.tar.gz
- Upload date:
- Size: 32.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22bcacd01bcad598bc053b662cfd1a93373563cf03039b0f7ec1289a50ecf7c9
|
|
| MD5 |
66fb7b17706ad5f729defeada6d4d030
|
|
| BLAKE2b-256 |
0a3724e3d5fd5da267bac90bd07045533d47e3b10d02603afa0e1d26f5d3a03b
|
Provenance
The following attestation bundles were made for ebsdlab-0.0.6.tar.gz:
Publisher:
pypi.yml on micromechanics/ebsdlab
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ebsdlab-0.0.6.tar.gz -
Subject digest:
22bcacd01bcad598bc053b662cfd1a93373563cf03039b0f7ec1289a50ecf7c9 - Sigstore transparency entry: 226152508
- Sigstore integration time:
-
Permalink:
micromechanics/ebsdlab@5c247b8e30a4a428eadedef66c2563dbbe651fbb -
Branch / Tag:
refs/tags/v0.0.6 - Owner: https://github.com/micromechanics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@5c247b8e30a4a428eadedef66c2563dbbe651fbb -
Trigger Event:
push
-
Statement type:
File details
Details for the file ebsdlab-0.0.6-py3-none-any.whl.
File metadata
- Download URL: ebsdlab-0.0.6-py3-none-any.whl
- Upload date:
- Size: 31.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97dd0851664de4a6cabb6880c9d8de80820d8a363bbb5661a16958b87255bfcc
|
|
| MD5 |
f4db5196ad83fb1d6b2b604b28629e21
|
|
| BLAKE2b-256 |
6b70def58db7a6ee967923f39447f1751d67c77a308e219f38d1660385164690
|
Provenance
The following attestation bundles were made for ebsdlab-0.0.6-py3-none-any.whl:
Publisher:
pypi.yml on micromechanics/ebsdlab
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ebsdlab-0.0.6-py3-none-any.whl -
Subject digest:
97dd0851664de4a6cabb6880c9d8de80820d8a363bbb5661a16958b87255bfcc - Sigstore transparency entry: 226152527
- Sigstore integration time:
-
Permalink:
micromechanics/ebsdlab@5c247b8e30a4a428eadedef66c2563dbbe651fbb -
Branch / Tag:
refs/tags/v0.0.6 - Owner: https://github.com/micromechanics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@5c247b8e30a4a428eadedef66c2563dbbe651fbb -
Trigger Event:
push
-
Statement type: