Skip to content

Commit

Permalink
FILTER: Create Peregrine Reader Filter (Python) (#965)
Browse files Browse the repository at this point in the history
Signed-off-by: Joey Kleingers <[email protected]>
  • Loading branch information
joeykleingers authored May 24, 2024
1 parent 7802ad7 commit db37090
Show file tree
Hide file tree
Showing 6 changed files with 955 additions and 8 deletions.
26 changes: 23 additions & 3 deletions wrapping/python/plugins/DataAnalysisToolkit/Plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,53 @@

_filters = []

# FILTER_START: CalculateHistogramFilter
try:
from DataAnalysisToolkit.CalculateHistogramFilter import CalculateHistogramFilter
_filters.append(CalculateHistogramFilter)
except ImportError:
pass
# FILTER_END: CalculateHistogramFilter

# FILTER_START: InterpolateGridDataFilter
try:
from DataAnalysisToolkit.InterpolateGridDataFilter import InterpolateGridDataFilter
_filters.append(InterpolateGridDataFilter)
except ImportError:
pass
# FILTER_END: InterpolateGridDataFilter

# FILTER_START: CliReaderFilter
try:
from DataAnalysisToolkit.CliReaderFilter import CliReaderFilter
_filters.append(CliReaderFilter)
except ImportError:
pass
# FILTER_END: CliReaderFilter

# FILTER_START: ContourDetectionFilter
try:
from DataAnalysisToolkit.ContourDetectionFilter import ContourDetectionFilter
_filters.append(ContourDetectionFilter)
except ImportError:
pass
# FILTER_END: ContourDetectionFilter

# FILTER_START: NPSortArray
try:
from DataAnalysisToolkit.NPSortArray import NPSortArray
_filters.append(NPSortArray)
except ImportError:
pass
# FILTER_END: NPSortArray

# FILTER_START: ReadPeregrineHDF5File
try:
from DataAnalysisToolkit.ReadPeregrineHDF5File import ReadPeregrineHDF5File
_filters.append(ReadPeregrineHDF5File)
except ImportError:
pass
# FILTER_END: ReadPeregrineHDF5File

import simplnx as nx

Expand All @@ -52,12 +73,11 @@ def name(self) -> str:
return 'DataAnalysisToolkit'

def description(self) -> str:
return 'A plugin that shows examples of Python DREAM3D filters that analyze data, specifically using Python libraries like numpy, scipy, and matplotlib.'
return 'A plugin containing Python DREAM3D filters that analyze data, specifically using Python libraries like numpy, scipy, and matplotlib.'

def vendor(self) -> str:
return 'BlueQuartz Software'

def get_filters(self):
return _filters

return _filters

Loading

0 comments on commit db37090

Please sign in to comment.