nexusLIMS.extractors.plugins.profiles.jeol_jem_642#
Instrument profile for JEOL JEM TEM (642 Stroboscope).
Module Contents#
Functions#
Detect diffraction patterns using filename heuristics. |
Data#
An instrument profile for the JEOL Stroboscope |
API#
- nexusLIMS.extractors.plugins.profiles.jeol_jem_642.detect_diffraction_from_filename(metadata: dict[str, Any], context: ExtractionContext) dict[str, Any][source]#
Detect diffraction patterns using filename heuristics.
The JEOL Stroboscope doesn’t add metadata indicating diffraction mode, so we use common filename patterns (Diff, SAED, DP) to detect it.
This is not perfect but better than nothing.
- Parameters:
metadata – Metadata dictionary with ‘nx_meta’ key
context – Extraction context containing file path
- Returns:
Modified metadata dictionary with updated dataset type if applicable
- Return type:
- nexusLIMS.extractors.plugins.profiles.jeol_jem_642.jeol_jem_642_profile#
‘InstrumentProfile(…)’
An instrument profile for the JEOL Stroboscope