Skip to content

Support size-1 non-scalar inputs to crop OR provide more helpful error #861

@DanRyanIrish

Description

@DanRyanIrish

Describe the feature

NDCube.crop takes tuples of scalar high-level coordinate objects. But when length/size-1 objects are put in, a very unhelpful error is given.

Request that either NDCube sanitizes the inputs and converts them to scalar if length-1, and/or provide a more helpful error.

Proposed solution

No response

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