Skip to content

[FEATURE] Add the option to disable flow when using projectΒ #1032

@chrispap95

Description

@chrispap95

When projecting to an axis of a multi-dimensional histogram, the flow bins are always included.
This may be desired by default but it would be nice to be able to discard the flow bins.
For example, one might want to make a cut on one axis:

h_new = h_old[10j:50j, :, :, :]

and then check how the other variables look like after the cut:

h_new.project("axis_2")

This is going to be the same as h_old.project("axis_2") since flow is always included.
What I am suggesting is:

h_new.project("axis_2", flow=False)

which would show what happens to axis_2 after the cut on axis_0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions