Skip to content

Prevent endpoint rounding artefacts in accumulate#35

Draft
bcoltman wants to merge 1 commit into
lczech:devfrom
bcoltman:dev
Draft

Prevent endpoint rounding artefacts in accumulate#35
bcoltman wants to merge 1 commit into
lczech:devfrom
bcoltman:dev

Conversation

@bcoltman

@bcoltman bcoltman commented Jun 3, 2026

Copy link
Copy Markdown

This PR extends the recent endpoint-clamping fix in edit accumulate to handle an additional numerical edge case observed on zero-length branches.

In some accumulated .jplace files, placements on branches with branch_length = 0.0 could still be written with tiny non-zero coordinates (e.g. 8.27e-25), which are subsequently rejected by guppy check / guppy fpd.

The change clamps these machine-precision endpoint artefacts to the valid branch interval while leaving all biologically meaningful placement coordinates unchanged.

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