SKILL.md
Post-processing and export
Collect molecular diagnostics
- Read per-molecule diagnostics from
molecule.additionaldatahistory(list of dicts). - Convert to arrays by extracting keys (
timeau,muxau,Pe,energy_au, ...).
Collect solver histories (when enabled)
- For
SingleModeSimulation(recordhistory=True), usesim.timehistory,qchistory,pchistory, andmoleculeresponsehistory. - For
LaserDrivenSimulation(recordhistory=True), usesim.timehistory,drivehistory, andmoleculeresponse_history.
Export
- Write CSV/NPZ from the collected arrays for reproducibility and downstream plotting.
- Keep the export code inside the project folder so it travels with inputs.
References
- Snippets:
skills/mxl-postprocess/references/postprocessing.md - Tools:
src/maxwelllink/tools/(pulse helpers and spectra utilities)