v0.4.2 — Windows charmap (cp1252) hotfix
Hotfix for Windows users
v0.4.1 had a Unicode bug that prevented PDB generation on default Windows console (cp1252 charmap encoding):
(3D PDB generation skipped: 'charmap' codec can't encode character '→')
The auto-PDB code path raised on a → arrow in a print statement, before the file was written.
Fix
- Replace Unicode arrows (
→) with ASCII->in user-facing prints - Replace
Å(Angstrom) withAin unit labels - Replace
CαwithCain inline messages - Add
sys.stdout.reconfigure(encoding="utf-8", errors="replace")on Windows for extra safety
Result: PDB now generates correctly on all platforms (tested with cp1252 strict-encoding simulation).
Update
pip install -U alphadynamics # → 0.4.2Same auto-PDB behavior as v0.4.1, just doesn't crash on Windows.