pymcabatch(1)
π pymcabatch(1) β the PyMca X-Ray Fluorescence Toolkit's lil batch-fitting bestie π
okay so bestie, gather round, because this one is from the PyMca X-Ray Fluorescence Toolkit and it is literally the "do the same fit to a whole pile of spectra" tool. no cap. π
β¨ NAME β¨
pymcabatch β batch fitting of X-ray Fluorescence Spectra. yes ma'am, batch. one config, many files, zero manual clicking. π
π¦ SYNOPSIS π¦
pymcabatch [OPTIONS] [FILES]
πΈ DESCRIPTION πΈ
so what it does is loop over a series of input files and apply the same fitting parameters to all of them. iconic behaviour honestly. the setup of the fit configuration is usually made via the main PyMca application, because that's where you go pick your pretty little fit settings first. β¨
the program stores the fitted parameters inside the IMAGES directory, and that directory gets created inside the output directory you specify. and then?? the pymcapostbatch tool can do further analysis via correlation tools. yes, there's a whole sequel. π«Ά
you can also request an HTML report. it is much slower, no lies detected, but it's convenient to browse the results with a Web browser. highkey worth it when you wanna scroll your results like a feed. π
also!! this tool is accessible via the Tools menu of the main PyMca window application. so you don't even have to touch a terminal if you don't want to. main character energy either way. π
π₯ EXAMPLES π₯
okay these are the actual moves, copy them exactly, i'm not playing:
pymcabatchβ opens a dialog to select input files, fit configuration, output directory and output parameters. the "i'll do it with my mouse" route. π±οΈpymcabatch --cfg=fitconfig.cfg --outdir=/tmp/ *.mcaβ fits all the.mcafiles in the current directory using the specified configuration filefitconfig.cfgand stores the output in/tmp. slay. πpymcabatch --cfg=fitconfig.cfg --outdir=/tmp/ --listfile=inputfilesβ same as above, but the files come from theinputfilesfile instead. that file is just a text file with one file path in each line. one path. per line. periodt. πpymcabatch --cfg=fitconfig.cfg --outdir=/tmp/ --concentrations=1 --listfile=inputfilesβ same as above, but now it's calculating the concentrations. look at you, doing chemistry. π§ͺ
π CAVEATS π
real talk: this tool, when used in command line mode, could run fully Qt independent, because in that case it uses Qt just for showing the progress bar. that's it. that's the whole job. the progress bar is out here freeloading and honestly? respect. π
π SEE ALSO π
pymcapymcapostbatch
and that's the whole vibe, bestie β this page came to you courtesy of ESRF, dated March 2012, and it's the pymcabatch(1) manual. go fit some spectra, you absolute legend. πβ¨π
π¦ where this page comes from
- debian bookworm: pymca 5.8.0+dfsg-2 Β· MIT
- debian trixie: pymca 5.9.4-1 Β· MIT
- fedora 43: PyMca 5.9.4-5.fc43 Β· GPL-2.0-or-later
- fedora 44: PyMca 5.9.4-8.fc44 Β· GPL-2.0-or-later
- ubuntu jammy: pymca 5.7.1+dfsg-1build1 Β· MIT
- ubuntu noble: pymca 5.9.2+dfsg-2build1 Β· MIT
- ubuntu questing: pymca 5.9.4-1
- ubuntu resolute: pymca 5.9.4-1build2 Β· MIT
- ubuntu stonking: pymca 5.9.4-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms