Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------------------------------------
- IndexError Traceback (most recent call last)
- Cell In[15], line 887
- 880 run5.prd_silver_counts = run5.detected_counts(run5.prd_peak_amplitude[1],
- 881 run5.prd_peak_sigma[1])
- 882 run5.prd_copper_counts = run5.detected_counts(run5.prd_peak_amplitude[2],
- 883 run5.prd_peak_sigma[2])
- --> 887 run1.plot_data(type='rbs')
- 890 measured_cross_section = run1.rbs_gold_counts / (run1.particles_delivered() * run1.sr_RBS() * foil_thickness) / 1e-27
- 891 print(f"Measured differential cross section for gold on run 1: {measured_cross_section:.5e} mb/sr")
- Cell In[15], line 313
- 287 dataplot.update_layout(
- 288 title=type + " Data",
- 289 xaxis_title="Channel",
- (...)
- 301 )
- 302 )
- 304 dataplot.add_trace(go.Scatter(
- 305 x=x,
- 306 y=y,
- (...)
- 310 line=dict(color='blue', dash='solid')
- 311 ))
- --> 313 fit = gauss_lin(x, params)
- ...
- --> 111 intercept = params[1]
- 112 y += slope * x + intercept
- 113 for i in range(2, len(params), 3):
- IndexError: tuple index out of range
- Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement