Skip to content

clip fails for *dimensionless* Quantities when the limits are not Quantities. #108

Open

Description

@burnpanck

The current implementation of clip tests whether a_min and a_max are Quantities, except for the case of dimensionless quantities. I assume that the idea is to allow to clip dimensionless quantities with limits that are not quantities itself. However, the implementation then goes on to rescale the limits to the dimensionality of the main argument, which of course fails, as the limits might not have a method .rescale.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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