Skip to content

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

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

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