You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Timestep.dimensions accepts impossible or non-finite unit-cell angles #5538
Chemical repository testing study: this report was found by an LLM-assisted boundary and invariant-testing pass over MDAnalysis unit-cell geometry. I reproduced and minimized the behavior locally and searched existing issues before filing.
Summary
Timestep.dimensions accepts impossible or non-finite triclinic angles. Values such as 0°, 180°, or NaN are stored without validation; converting the box to triclinic vectors then produces NaN/invalid geometry.
Observed with MDAnalysis 2.11.0: all inputs are accepted; invalid angles propagate into the computed triclinic cell. A unit-cell angle must be strictly between 0° and 180° and finite.
Expected behavior
Raise ValueError when any of the three unit-cell angles is non-finite or outside (0, 180).
Validation
A focused patch and regression tests are available on branch reject-invalid-unitcell-angles in my fork.
Activity
RitikaSen27 commentedon Nov 2, 2026
@swf1996120 hello,can i work on this issue?
orbeckst commentedon Nov 13, 2026
See my comments on related issues #5536 and #5534 — until we get real user reports that this is a problem, we won't use resources to address it.
I'll leave the issue open for documentation purposes.