Skip to content

Some reduction methods don't error on wrong dimension names #1154

@JamesWrigley

Description

@JamesWrigley

MWE:

# Does not error
mean(rand(X(10)); dims=:foo)

# Does not error
sum(rand(X(10)); dims=:foo)

# Does error with 'ArgumentError: (X,) dims were not found in object'
std(rand(X(10)); dims=:foo)

I did not audit all of the methods to check their behaviour. I think DD should always throw an error if an invalid dimension name is passed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions