Skip to content

Fix inline coordinate parsing, log method bugs, and add --version flag#34

Open
AxiEj wants to merge 1 commit intoClickFF:enhancefrom
AxiEj:fix/inline-coords-version
Open

Fix inline coordinate parsing, log method bugs, and add --version flag#34
AxiEj wants to merge 1 commit intoClickFF:enhancefrom
AxiEj:fix/inline-coords-version

Conversation

@AxiEj
Copy link

@AxiEj AxiEj commented Mar 14, 2026

Fix inline coordinates parsing (input_reader.py)

  • Parsing truncation: is_coord_like() did not recognise charge/multiplicity lines (e.g. 0 1, -1 2), causing
    the molecule block to be cut short when charge/spin were specified inline. Fixed by adding a regex check for
    two-integer lines.

Fix log_info() call sites (input_reader.py)

  • Two call sites passed bare strings instead of lists to log_info(), causing iteration over characters. Fixed by
    wrapping the strings in lists.

Add --version flag and bump version to 0.1.1+enhance3.13

  • Added --version argument via argparse in maple/main.py
  • Lazy-imports the engine so --version works without loading heavy dependencies
  • Bumped version in pyproject.toml to 0.1.1+enhance3.13

Cleanup

  • Compress log_error/log_info docstrings
  • Align IMPLEMENTATION_MAP formatting in command_control.py

- Add charge/multiplicity regex to is_coord_like() so the three-section
  parser no longer truncates inline coordinate blocks
- Add --version flag; lazy-import engine to avoid heavy imports on --help
- Fix log_info() call sites that passed bare strings instead of lists
- Compress log_error/log_info docstrings; align IMPLEMENTATION_MAP formatting
- Bump version to 0.1.1+enhance3.13

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant