refactor: Start removing line parser#2544
Merged
Merged
Conversation
trisyoungs
approved these changes
Jun 30, 2026
trisyoungs
left a comment
Member
There was a problem hiding this comment.
On the one hand, this is an easy win because LineParser was truly awful, but I think this has turned out excellent and makes our input parsing feel very proper indeed!
Bunch of small comments, mostly formatting etc.
|
|
||
| TEST(ApplicativeTest, DLPOLYStructure) | ||
| { | ||
| using namespace Parsers; |
Member
There was a problem hiding this comment.
Here, wouldn't this be better at the top of the file rather than repeated in every TEST?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR removes the LineParser dependency in
ImportDLPOLYStructureNode,ImportDLPOLYTrajectoryNode,ImportDLPUtilsPDensNode,ImportDLPUtilsSurfaceNode, andImportMoscitoStructureNode.It also fixes up
MDNodeto use the cleaner =std::format_to= for file output.The one bit that I'm not happy about is that I needed to adjust the tolerance on
CosNTorsionForcesTest::POEin order to pass the tests. I only had to change the tolerance from 0.006 to 0.0062 and the actual value is in the thousands, but I'm always concerned when a test like this needs changing. I know that the change comes from the new Moscito parser and I suspect that it's a slight difference in how doubles are parsed, which can result in some differences in the lowest bits.