Skip to content

Comments

Allow unrecognized units#188

Open
rprospero wants to merge 11 commits intorefactor_24from
172_unrecognized_units
Open

Allow unrecognized units#188
rprospero wants to merge 11 commits intorefactor_24from
172_unrecognized_units

Conversation

@rprospero
Copy link
Contributor

As mentioned in #172, users might want to track units that aren't necessarily SI measurements (e.g. Slices per Pizza, Pages per Book). This PR adds an ArbitraryUnits class which can track these sorts of units while still interactive with the regular Units and NamedUnits` classes.

It also contains a modernisation of the utest_units.py test file so that the tests can be properly searched and controlled through pytest.

codescene-delta-analysis[bot]

This comment was marked as outdated.

codescene-delta-analysis[bot]

This comment was marked as outdated.

codescene-delta-analysis[bot]

This comment was marked as outdated.

@rprospero rprospero force-pushed the 172_unrecognized_units branch from 662433f to 6e85365 Compare February 20, 2026 12:43
Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No quality gates enabled for this code.

See analysis details in CodeScene

Quality Gate Profile: Custom Configuration
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

@rprospero rprospero marked this pull request as ready for review February 20, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant