Skip to content

Handle negative branching fractions #657

Backlog
Backlog

Description

@vvsagar

As discussed here: #654 (comment) there are two approaches to handling negative branching fractions.

  1. We can use a custom LARK grammar with NON_NEG_NUMBER that just crashes when it sees negative branching fraction (see draft PR: Introduce NON_NEG_NUMBER in Lark grammar for branching fractions #656).
  2. Simply, add an additional check in parse() to warn when it sees negative branching fraction, and add it as a new warning code in decaylanguage-validate (see draft PR: Warn on negative branching fractions #655)

Tagging @eduardo-rodrigues

Activity

  1. eduardo-rodrigues commented on Nov 26, 2026

    @eduardo-rodrigues
    Member

    Many thanks for this, @vvsagar. Let me think over it a bit more, and I also pinged an LHCb colleague for another / a third opinion.

    On first principles I'm more included for solution #656. (Note that the notebook is giving an error there.)

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

    dec filesenhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions