pySpice.exhibitor package

This module contain the utilities that generate the final output using the information the solver packages provided.

pySpice.exhibitor.formator module

pySpice.exhibitor.formator.data_provider(analysis_type, cmd_list, watch_list, sample)[source]

Generating the Data for PRINT/PLOT Commands Using the Raw Data of the Status of the Points/Branches to watch_list

Also it re-arrange the data layout. So in the finally output, the first line is the sweep item. Following lines begins with the PRINT/PLOT item’s name and then it’s values in consecutive sweep points.

Parameters:
  • analysis_type – either ‘ac’ ‘dc’ or ‘tran’
  • cmd_list – a list containing the print/plot items for this analysis
  • watch_list – the watch_list, stating which points/branches are of interest
  • sample – the output of solve() function
Returns:

an list output containing the information for the values of the item appeared in the PRINT/PLOT commands.

pySpice.exhibitor.formator.format(sample, filename)[source]

Generate Text Output

Parameters:
  • sample – the output of the solve function, a python dictionary containing the status of the point apperaed on watch_list
  • filename – a string specify the output filename
Returns:

will write a text file containing the result for the analysis. The format illustrate itself best through an example.

pySpice.exhibitor.plotter module

pySpice.exhibitor.plotter.analysis_plot(section)[source]

Sub-Routine to Plot() Function, Plot the Graphs for a Single Kind of Analysis

pySpice.exhibitor.plotter.plot(filename)[source]

Top Level Encapsulation of the Plotting Utility

This module takes input from the text output of the format() function. So this can be seen is extension to the program, used to visualize the analysis result.

Parameters:filename – a string of the filename of the text report
Output:several windows, each has the plot for a single kind of analysis