Loading
fix: Extxyz frame parsing in optimized mode
Closes #1957 (closed)
This MR fixes an extxyz reader bug exposed when running ASE with python -O. The reader used an assert statement to both validate and consume the frame atom-count line. Since optimized Python strips assertions, the atom-count line was not consumed, causing the parser to treat the comment/header line as atom data and fail across many extxyz tests.
Checklist: x (done) or ~ (irrelevant)
Edited by Anthony