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
- 1.1 Anaconda Virtual Environment Setup
- 1.2 Introduction
- 1.3 Necessary Import Statements
- 1.4 Creating the DataStructure Object
- 1.5 First Steps: Create a Group in the DataStructure
- 1.6 Result Objects
- 1.7 Creating a DataArray Object
- 1.8 Modifying the DataArray Object using Numpy
- 1.9 Saving your Data to a .dream3d file
- 1.10 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