Skip to content

Commit

Permalink
Fixed Example
Browse files Browse the repository at this point in the history
Signed-off-by: samadpls <[email protected]>
  • Loading branch information
samadpls committed Jul 30, 2024
1 parent 04920cd commit 8f49d91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/howto/plot_batch_simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ def summary_func(results):

# Extract min and max peaks for plotting
min_peaks, max_peaks = [], []
for res in simulation_results:
summary_stats = res[0]
min_peaks.append(summary_stats['min_peak'])
max_peaks.append(summary_stats['max_peak'])
for summary_list in simulation_results['summary_statistics']:
for summary in summary_list:
min_peaks.append(summary['min_peak'])
max_peaks.append(summary['max_peak'])

# Plotting
plt.figure(figsize=(10, 6))
Expand Down

0 comments on commit 8f49d91

Please sign in to comment.