Skip to content

Upgrade from v0.3.0 to v0.4.0 breaks h.Copy() #31

@nickcurie

Description

@nickcurie

Hi there! It looks like the latest update to v0.4.0 broke h.Copy() due to the new use of the copy function. copy takes destination as the first function argument then source, so h.bvs and newhist.bvs need to get swapped. Currently h.Copy() is removing all data from the bins in the original histogram and creating a copy which also has no data in its bins.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions