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 .mca files in the current directory using the specified configuration file fitconfig.cfg and stores the output in /tmp. slay. πŸ’–
  • pymcabatch --cfg=fitconfig.cfg --outdir=/tmp/ --listfile=inputfiles β€” same as above, but the files come from the inputfiles file 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 🌈

  • pymca
  • pymcapostbatch

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. πŸ’œβœ¨πŸŽ€