1. pyopus.simulator — Simulator support module

Simulator support module

Nothing from the submodules of this module is imported into the main simulator module. The simulator module provides only the simulatorClass() function for on-demand loading of simulator classes.

pyopus.simulator.simulatorClass(className)

Returns the class object of the simulator named className. Raises an exception if the simulator class object is not found.

This function provides on-demand loading of simulator classes.

To create a simulator object of the class SpiceOpus and put it in sim use:

from pyopus.simulator import simulatorClass
SimClass=simulatorClass('SpiceOpus')
sim=SimClass()

For this function to work the simulator class must be in a module whose name is the lowercase version of the simulator class name.