Skip to content

Prepare new release#151

Merged
juhasch merged 15 commits intomasterfrom
fix/offset
Jul 19, 2025
Merged

Prepare new release#151
juhasch merged 15 commits intomasterfrom
fix/offset

Conversation

@juhasch
Copy link
Owner

@juhasch juhasch commented Apr 20, 2025

  • Introduce fractdict to handle fractions in units.
  • Refactor arithmetic operations (*, /, //) in PhysicalUnit and PhysicalQuantity for type consistency and Python 3 compatibility.
  • Resolve circular imports between unit.py and quantity.py via local imports.
  • Correct logic in PhysicalUnit.is_power and dBQuantity comparison methods for proper dimensional handling.
  • Fix PhysicalUnit.__hash__ to enable unit/quantity hashing and restore @lru_cache on findunit.
  • Improve error handling and type checks in findunit and add_composite_unit.
  • Correct unit handling and type checking in numpywrapper.linspace.
  • Update tests to match corrected behavior and expected exceptions.
  • Improve code readability (f-strings, type checks).

@juhasch juhasch merged commit ef0b374 into master Jul 19, 2025
5 checks passed
@juhasch juhasch deleted the fix/offset branch July 21, 2025 19:06
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