Skip to content

Conversation

@jlheflin
Copy link
Contributor

@jlheflin jlheflin commented Oct 5, 2025

Is this pull request associated with an issue(s)?
No

Description
Converts angstrom-based XYZ files to bohr coordinates for Chemist conventions.

TODOs
None, r2g.

@jlheflin jlheflin requested a review from jwaldrop107 October 5, 2025 23:51
@jlheflin jlheflin self-assigned this Oct 5, 2025
Copy link
Member

@jwaldrop107 jwaldrop107 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is on the right track, but I think we'll want to go about it differently. Instead of changing the default behavior, I would add an input to the module called "units" that defaults to "bohr". Then have the module check the value of that input to determine if the coordinate values need to be converted (and throw on non-permissible values).

@jlheflin
Copy link
Contributor Author

jlheflin commented Oct 8, 2025

I added in the unit scaling factor, I also "stress tested" the XYZ File to Molecule module with both a converted protein pdb from RCSB (4EMU, 2977 atoms) as well as an OpenMM generated solvent box, converted to an xyz (98880 atoms). The 4EMU took 290 ms, and the solvated box took 56952 ms.

@jlheflin jlheflin marked this pull request as ready for review October 8, 2025 18:55
@ryanmrichard ryanmrichard merged commit 51885df into master Oct 8, 2025
5 checks passed
@ryanmrichard ryanmrichard deleted the xyz_ang2bohr_fix branch October 8, 2025 19:02
@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2025

🚀 [bumpr] Bumped!
New version:v0.0.9
Changes:v0.0.8...v0.0.9

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.

4 participants