Skip to content

BUG: Blending fails with 0 weight for passed data #2054

@SamGriffithsMO

Description

@SamGriffithsMO

When calling improver weighted-blending via the CLI, it is possible to pass multiple cubes that all have weights of 0 (as the graph has no knowledge of the blending weights). e.g. tempmax12h, for a 24 hour leadtime being passed engluk and ecukx only.

Currently this results in blending.weights.WeightsUtilities raising ValueError("Sum of weights must be > 0.0"). It is desirable for this to be a warning so that suites can continue to cycle.

Acceptance criteria:

  1. No change when presented with a full data set
  2. If there is no weight to any input, raise a warning and return None

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