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