Skip to content

Fixes #2274: Numpy-specific to_compact()#2275

Open
sieben-gea wants to merge 1 commit intohgrecco:masterfrom
sieben-gea:master
Open

Fixes #2274: Numpy-specific to_compact()#2275
sieben-gea wants to merge 1 commit intohgrecco:masterfrom
sieben-gea:master

Conversation

@sieben-gea
Copy link

  • Closes to_compact() fails with numpy quantities #2274
  • Executed pre-commit run --all-files or pixi run lint --all-files with no errors
  • The change is fully covered by automated unit tests
  • Documented in docs/ as appropriate
  • Added an entry to the CHANGES file

I modified qto.to_compact() to work with numpy magnitudes and added that to NumpyQuantity. The SI prefix list generation could maybe also be moved into a different function, because it is unchanged between the two implementations. Let me know what you think!

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.

to_compact() fails with numpy quantities

1 participant