Advertisement
GregLeblanc

Untitled

Apr 14th, 2025
15
0
360 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. ---------------------------------------------------------------------------
  2. IndexError Traceback (most recent call last)
  3. Cell In[15], line 887
  4. 880 run5.prd_silver_counts = run5.detected_counts(run5.prd_peak_amplitude[1],
  5. 881 run5.prd_peak_sigma[1])
  6. 882 run5.prd_copper_counts = run5.detected_counts(run5.prd_peak_amplitude[2],
  7. 883 run5.prd_peak_sigma[2])
  8. --> 887 run1.plot_data(type='rbs')
  9. 890 measured_cross_section = run1.rbs_gold_counts / (run1.particles_delivered() * run1.sr_RBS() * foil_thickness) / 1e-27
  10. 891 print(f"Measured differential cross section for gold on run 1: {measured_cross_section:.5e} mb/sr")
  11.  
  12. Cell In[15], line 313
  13. 287 dataplot.update_layout(
  14. 288 title=type + " Data",
  15. 289 xaxis_title="Channel",
  16. (...)
  17. 301 )
  18. 302 )
  19. 304 dataplot.add_trace(go.Scatter(
  20. 305 x=x,
  21. 306 y=y,
  22. (...)
  23. 310 line=dict(color='blue', dash='solid')
  24. 311 ))
  25. --> 313 fit = gauss_lin(x, params)
  26. ...
  27. --> 111 intercept = params[1]
  28. 112 y += slope * x + intercept
  29. 113 for i in range(2, len(params), 3):
  30.  
  31. IndexError: tuple index out of range
  32. 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