Skip to content

Commit

Permalink
Corrections on the run_montecarlo.py and run_worst_case.py examples.
Browse files Browse the repository at this point in the history
The run_testbench() should be used instead of the run() method.
  • Loading branch information
nunobrum committed Feb 15, 2024
1 parent e2131ae commit 3170a28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/run_montecarlo.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# Finally the netlist is saved to a file
mc.save_netlist('./testfiles/sallenkey_mc.net')

mc.run(100) # Runs the simulation with splits of 100 runs each
mc.run_testbench(runs_per_sim=100) # Runs the simulation with splits of 100 runs each
logs = mc.read_logfiles() # Reads the log files and stores the results in the results attribute
logs.export_data('./temp_mc/data.csv') # Exports the data to a csv file
logs.plot_histogram('fcut') # Plots the histograms for the results
Expand Down
2 changes: 1 addition & 1 deletion examples/run_worst_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
# Finally the netlist is saved to a file
wca.save_netlist('./testfiles/sallenkey_wc.asc')

wca.run_testbench() # Runs the simulation with splits of 100 runs each

wca.run() # Runs the simulation with splits of 100 runs each
logs = wca.read_logfiles() # Reads the log files and stores the results in the results attribute
logs.export_data('./temp_wca/data.csv') # Exports the data to a csv file

Expand Down

0 comments on commit 3170a28

Please sign in to comment.