SimCommander

class PyLTSpice.sim.sim_batch.SimCommander(netlist_file, parallel_sims=4, timeout=None, verbose=False, encoding='autodetect', simulator=None)[source]

Bases: SpiceEditor

(Deprecated) Backwards compatibility class.

This class will be soon deprecated. For a better control of the simulation environment, supporting other simulators and allowing to simulate directly the .ASC files, the SpiceEditor class is now separated from the Simulator Running class. Please check the SimRunner class for more information.

add_LTspiceRunCmdLineSwitches(*args)[source]

(Deprecated) Used to add an extra command line argument such as -I<path> to add symbol search path or -FastAccess to convert the raw file into Fast Access. The arguments is a list of strings as is defined in the LTSpice command line documentation.

Parameters:

args (list[str]) – list of strings A list of command line switches such as “-ascii” for generating a raw file in text format or “-alt” for setting the solver to alternate. See Command Line Switches information on LTSpice help file.

Returns:

Nothing

Return type:

None

property failSim

(Deprecated) Legacy property

property okSim

(Deprecated) Legacy property

run(wait_resource=True, callback=None, timeout=600, run_filename=None, simulator=None)[source]

Deprecated since version 1.0: Use the run method from the SimRunner class instead.

Convenience function for maintaining legacy with legacy code. Runs the SPICE simulation.

property runno

(Deprecated) Legacy property

setLTspiceRunCommand(spice_tool)[source]

(Deprecated) Manually setting the LTSpice run command.

Parameters:

spice_tool (str | type[Simulator]) – String containing the path to the spice tool to be used, or alternatively the Simulator object.

Returns:

Nothing

Return type:

None

updated_stats()[source]

(Deprecated) This function updates the OK/Fail statistics and releases finished RunTask objects from memory.

Returns:

Nothing

wait_completion(timeout=None, abort_all_on_timeout=False)[source]