load#
- ams.main.load(case, setup=True, use_input_path=True, **kwargs)[source]#
Load a case and set up a system without running routine. Return a system.
Takes other kwargs recognizable by
System, such asaddfile,input_path, andno_putput.- Parameters:
- case: str
Path to the test case
- setupbool, optional
Call System.setup after loading
- use_input_pathbool, optional
True to use the
input_pathargument to behave the same asams.main.run.
Warning
If one need to add devices in addition to these from the case file, do
setup=Falseand callSystem.add()to add devices. When done, manually invokesetup()to set up the system.Notes
Revised from the ANDES project (CURENT/andes). Original author: Hantao Cui License: GPL3