def plot_GraphAnalysis(): netlist = NetlistThieleSmallNL() graph = Graph(netlist=netlist) graph.buildCore() graph.analysis.plot(show=False) os.remove(path) return True
def TestCore2Tex(): netlist = NetlistThieleSmallNL() graph = Graph(netlist=netlist) core = graph.buildCore() content = netlist2tex(netlist) content += graphplot2tex(graph) content += core2tex(core) texdocument(content, path, title='test core2tex') os.remove(path) return True
Created on Sat Jan 14 11:50:23 2017 @author: Falaize """ from __future__ import absolute_import, division, print_function import os from pyphs import Netlist, Graph label = 'mka_dual' path = os.path.realpath(__file__)[:os.path.realpath(__file__).rfind(os.sep)] netlist_filename = path + os.sep + label + '.net' netlist = Netlist(netlist_filename) graph = Graph(netlist=netlist) core = graph.buildCore() #if __name__ == '__main__': # # from pyphs import Simulation, signalgenerator # import numpy as np # # # tsig = 0.01 # fs = 48000. # # config = {'fs': 48e3, # 'progressbar': True, # } # simu = Simulation(core, config) #
from __future__ import absolute_import, division, print_function import os from pyphs import Netlist, Graph label = 'triodeamp' path = os.path.realpath(__file__)[:os.path.realpath(__file__).rfind(os.sep)] netlist_filename = path + os.sep + label + '.net' netlist = Netlist(netlist_filename) graph = Graph(netlist=netlist) core = graph.buildCore(verbose=False) core.reduce_z() #if __name__ == '__main__': # # from pyphs import Simulation, signalgenerator # # config = {'fs': 48e3, # 'split': True, # 'progressbar': True, # 'timer': True, # } # # simu = Simulation(core, config=config) #