pyqmmm.qm.orca_clean_irc¶
Utility to purge non‑essential files left over from an ORCA **I**ntrinsic **R**eaction **C**oordinate (IRC) job.
Safety features¶
IRC verification – The script aborts unless at least one
*.outfile in the working directory contains the phrase"Storing full IRC trajectory in"(case‑sensitive), which ORCA prints only for IRC runs.Interactive confirmation – A simple “Continue? (y/N):” prompt; default is No.
Scope limited to CWD – Only files directly in the current working directory are affected.
Examples
$ cd /path/to/irc_job # <- run inside the job dir $ python orca_irc_cleanup.py Identified 8 left over files from the IRC calculation. Continue? (y/N): y Deleted 8 files.
Module Contents¶
Functions¶
|
Return True if any |
|
Return list of files lacking extensions in |
|
Script entry point. |
Attributes¶
- pyqmmm.qm.orca_clean_irc.ALLOWED_EXTS: Set[str]¶
- pyqmmm.qm.orca_clean_irc.MARKER = 'Storing full IRC trajectory in'¶
- pyqmmm.qm.orca_clean_irc.is_irc_directory(path: pathlib.Path) bool[source]¶
Return True if any
*.outfile under path containsMARKER.- Parameters:
path – Directory expected to hold ORCA output files.
Notes
Reads files line‑by‑line and stops at the first match.