LTSpiceLogReader

class spicelib.log.ltsteps.LTSpiceLogReader(log_filename, read_measures=True, step_set=None, encoding=None)[source]

Bases: LogfileData

Reads an LTSpice log file and retrieves the step information if it exists. The step information is then accessible by using the ‘stepset’ property of this class. This class is intended to be used together with the RawRead to retrieve the runs that are associated with a given parameter setting.

This class constructor only reads the step information of the log file. If the measures are needed, then the user should call the get_measures() method.

Property stepset:

dictionary in which the keys are the variables that were STEP’ed during the simulation and the associated value is a list representing the sequence of assigned values during simulation.

Property headers:

list containing the headers on the exported data. This is only populated when the read_measures optional parameter is set to False.

Property dataset:

dictionary in which the keys are the headers and the export file and the values are lists. This is information is only populated when the read_measures optional parameter is set to False.

Parameters:
  • log_filename (str) – path to the Export file.

  • read_measures (boolean) – Optional parameter to skip measuring data reading.

  • step_set (dict) – Optional parameter to provide the steps from another file. This is used to process .mout files.

export_data(export_file, encoding=None, append_with_line_prefix=None)[source]

Aside from exporting the data, it also exports fourier data if it exists