Skip to content

fix: Properly deserialise loopback edges - #2599

Merged
rprospero merged 1 commit into
dissolve2/graph-toml-roundtripfrom
dissolve2/graph-toml-roundtrip-fixup
Sep 4, 2026
Merged

fix: Properly deserialise loopback edges#2599
rprospero merged 1 commit into
dissolve2/graph-toml-roundtripfrom
dissolve2/graph-toml-roundtrip-fixup

Conversation

@rprospero

Copy link
Copy Markdown
Contributor

This fixes the issue with deserialising the loopback edges. I've also added a small test to confirm that the number of loopback edges are correct after the roundtrip.

The extra test is because I briefly thought that I had solved the problem, but found that I had merely prevented loopbacks from exporting, so both the original and the roundtrip showed no loopbacks and the test passed, despite the roundtrip not actually reconstructing the same graph.

Ensure that loaded graph has correct number of loopbacks
Fixup
Actual fix

@RobBuchananCompPhys RobBuchananCompPhys left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I haven't tested this out locally, so I assume the tests added here are passing, but this looks spot on! 👍

@rprospero
rprospero merged commit c18a6df into dissolve2/graph-toml-roundtrip Sep 4, 2026
@rprospero
rprospero deleted the dissolve2/graph-toml-roundtrip-fixup branch September 4, 2026 08:33
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.

3 participants