17 Util to load the scenario implementation.
19 Assumes that module exists at:
21 Configuration.DataProcessing.Impl.<scenarioName>.py
24 moduleName =
"Configuration.DataProcessing.Impl.%s" % scenarioName
26 module = __import__(moduleName,
27 globals(), locals(), [scenarioName])
28 except ImportError
as ex:
29 msg =
"Unable to load Scenario Module:\n"
30 msg +=
"%s\n%s\n" % (moduleName, str(ex))
31 raise RuntimeError(msg)
32 instance = getattr(module, scenarioName,
None)
34 msg =
"Unable to retrieve instance of Scenario class:"
35 msg +=
"%s\n From Module\n%s" % (scenarioName, moduleName)
static PFTauRenderPlugin instance