System.import_models#
- System.import_models()[source]#
Import and instantiate models as System member attributes.
Models defined in
models/__init__.pywill be instantiated sequentially as attributes with the same name as the class name. In addition, all models will be stored in dictionarySystem.modelswith model names as keys and the corresponding instances as values.Examples
system.Busstores the Bus object, andsystem.GENCLSstores the classical generator object,system.models['Bus']points the same instance assystem.Bus.