Skip to content

split(f, 0) throws BoundsError for zero-leg tree #541

Closed

Description

@lkdvos

Docstring claims split holds for all M between 0 and N, but for M == 0, coupled₁ = leftunit(f.uncoupled[1]) indexes an empty tuple. No live caller hits M=0 today. Fix: use leftunit(f.coupled) instead (equivalent by unit homogeneity).

src/fusiontrees/basic_manipulations.jl:39.

Activity

  1. linked a pull request that will close this issueRelease v0.17.2 #550on Sep 20, 2026
  2. added a commit that references this issue on Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions