autoemxsp.EM_driver package
Electron Microscope Driver Loader
This module provides a function to dynamically load and inject microscope-specific driver parameters and functions for SEM operation from the ‘EM_driver’ directory.
- Usage from other modules:
from autoemxsp import EM_driver EM_driver.load_microscope_driver(microscope_ID=’PhenomXL’)
Author: Andrea Giunto Created on: Mon Jan 20 15:40:42 2025
- autoemxsp.EM_driver.load_microscope_driver(microscope_ID: str) None[source]
Dynamically load driver parameters and functions for a given microscope.
This function imports all public attributes from the driver file named ‘{microscope_ID}.py’ (located inside the EM_driver directory) and injects them into the current module’s namespace.
- Parameters:
(str) (microscope_ID)
- Raises:
ValueError – If the driver file cannot be found or imported.:
Warning
This function injects variables and functions into the module namespace. Use with care to avoid name collisions.
Submodules
- autoemxsp.EM_driver.PhenomXL module
- Electron Microscope Driver
frame_rel_to_pixel_coords()frame_pixel_to_rel_coords()standby()set_electron_detector_mode()activate()to_SEM()set_high_tension()set_beam_current()get_EDS_analyser_object()acquire_XS_spectral_data()auto_focus()auto_contrast_brightness()adjust_focus()move_to()get_frame_width()get_range_frame_width()set_frame_width()get_image_data()set_brightness()set_contrast()get_current_wd()to_nav()get_navigation_camera_image()