fix: robust Am-241 peak detection for energy calibration

- Search full spectrum (exclude pulser region) instead of just low-energy
- Include 59.54 keV line in known Am-241 energies
- Brute-force peak-to-energy matching with physical gain constraint
  (3-40 ch/keV) to reject spurious fits
- Fixed find_peaks parameters: height=100, distance=5 for accurate
  peak detection
- Calibration now correctly maps: ch 97→13 keV, ch 134→17.4 keV,
  ch 537→59.6 keV, giving Tc-99 endpoint at ch 2750→291.6 keV
- Add .rpiv/ to .gitignore
This commit is contained in:
2026-05-21 16:43:10 +03:00
parent 5ec6305e09
commit 8952d0f789
3 changed files with 72 additions and 40 deletions
Binary file not shown.