fix: robust Am-241 calibration with width-constrained peak detection

- Use find_peaks width=(5,50) to reject noise bumps
- Simplify peak matching: find two strongest peaks with largest
  channel separation, assign min/max known energies
- Require absolute threshold of 400 counts to avoid noise peaks
- Calibration now correctly maps: ch 97→13.0 keV, ch 537→59.54 keV
- Tc-99 endpoint at ch 2750 → 293.6 keV (expected ~294)
- Add .rpiv/ to .gitignore
This commit is contained in:
2026-05-21 18:21:51 +03:00
parent 8952d0f789
commit ab164fbf98
2 changed files with 46 additions and 57 deletions
Binary file not shown.