Skip to content

Instantly share code, notes, and snippets.

View ntrip6's full-sized avatar

Nico Tripcevich ntrip6

View GitHub Profile
@ntrip6
ntrip6 / Bruker-XRF-Igneous.txt
Last active May 16, 2026 05:39
Bruker XRF Igneous Rock Spectra and FP Weight% using PyMCA
# For Batch printing Bruker spectra files to PDF with spectral peaks identified.
# See this post for more details
# https://www.linkedin.com/pulse/batch-print-bruker-pdz-spectra-peaks-identified-using-pymca-l3g6c/
"""
PDF Report + Batch Summary for XRF Pipeline
- Multi-page PDF with PyPDF2 bookmarks
- Single summary CSV (one row per spectrum, file# as identifier)
"""
import numpy as np