nexusLIMS.extractors.plugins.preview_generators.tofwerk_pfib_preview#
Tofwerk fibTOF pFIB-ToF-SIMS preview generator plugin.
Module Contents#
Classes#
Preview generator for Tofwerk fibTOF pFIB-ToF-SIMS HDF5 files. |
API#
- class nexusLIMS.extractors.plugins.preview_generators.tofwerk_pfib_preview.TofwerkPfibPreviewGenerator[source]#
Preview generator for Tofwerk fibTOF pFIB-ToF-SIMS HDF5 files.
Generates a composite preview image showing:
Raw files: FIB SE image | TIC map | Depth profile (row 0); Sum mass spectrum (row 1, full width)
Opened files: FIB SE image | TIC map | RGB composite (row 0); Sum spectrum | Depth profiles (row 1)
- name#
‘tofwerk_pfib_preview’
- priority#
150
- supported_extensions#
Type: typing.ClassVar
- supports(context: ExtractionContext) bool[source]#
Check if this generator supports the given file.
Performs content sniffing identical to the extractor to confirm this is a Tofwerk fibTOF FIB-SIMS HDF5 file.
- Parameters:
context – The extraction context containing file information
- Returns:
True if this is a Tofwerk fibTOF FIB-SIMS HDF5 file
- Return type:
- generate(context: ExtractionContext, output_path: Path) bool[source]#
Generate a composite preview image for a Tofwerk fibTOF HDF5 file.
- Parameters:
context – The extraction context containing file information
output_path – Path where the preview PNG should be saved
- Returns:
True if preview was successfully generated, False otherwise
- Return type: