Skip to content

uw.non_dimensionalise(pint.Quantity) crashes: invalid dimensionality= kwarg in units.py protocol 5 #328

Description

@lmoresi

Summary

Found during #326 (BF-12 rewrite of test_0812): calling uw.non_dimensionalise() with a plain pint.Quantity crashes — the protocol-5 branch in units.py constructs UWQuantity with an invalid dimensionality= keyword. A TODO(BUG) marker was added at the site in #326 (comment-only; fix out of that PR's scope).

Small fix + a regression test with a pint input. Units subsystem.

Underworld development team with AI support from Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions