DREAM3D-NX Python Docs (v1.3.0)
Installation
The simplnx library can be installed through an Anaconda packages from the BlueQuartzSoftware channel. This can be achieved by creating a new virtual environment and installing the dream3dnx python package.
conda config --add channels conda-forge
conda config --set channel_priority strict
conda create -n nxpython python=3.12
conda activate nxpython
conda install -c bluequartzsoftware dream3dnx
How to use SIMPLNX from Python
Attention
All users should start with the SIMPLNX Python Introduction
Attention
Users wanting to integrate the functionality included with SIMPLNX/DREAM3D-NX from within Python, you should use the link to SIMPLNX User API Docs
Attention
Users wanting to extend DREAM3D-NX by writing filters in the python language should go to the Writing a Python Filter
- Python Example Usage
- SIMPLNX Python API
- Tutorial 1: Basic Python Integration
- Anaconda Virtual Environment Setup
- Introduction
- Necessary Import Statements
- Creating the DataStructure Object
- First Steps: Create a Group in the DataStructure
- Result Objects
- Creating a DataArray Object
- Modifying the DataArray Object using Numpy
- Saving your Data to a .dream3d file
- Complete Source Code
- Writing a Python Filter
- 0. Environment Setup
- 1. Generating the Skeleton Code
- 2. Loading The New Plugin
- 3. Understanding the Plugin Structure
- 4. Understanding the Filter Skeleton Structure
- 1. Defining Parameters
- 6. Writing the Preflight Implementation
- 8. Writing the Execute Implementation
- 9. Providing Feedback to the user during execution.
- 10. Debugging the Python Filter.
- SIMPLNX Filter Writing API