playnano.analysis.utils.loader module¶
Module for resolving and instantiating analysis modules.
Handles lookup in the built-in registry and via entry points registered under the group ‘playnano.analysis’.
- playnano.analysis.utils.loader.load_analysis_module(name: str) AnalysisModule[source]¶
Load and instantiate an AnalysisModule by name.
- Parameters:
name (str) – Name of the analysis module to load.
- Returns:
Instantiated module.
- Return type:
- Raises:
ValueError – If the module cannot be found.
TypeError – If the loaded object is not a subclass of AnalysisModule.