Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quantity checking functions for downstream libraries #1813

Open
andrewgsavage opened this issue Jul 4, 2023 · 0 comments · May be fixed by #1867
Open

Quantity checking functions for downstream libraries #1813

andrewgsavage opened this issue Jul 4, 2023 · 0 comments · May be fixed by #1867

Comments

@andrewgsavage
Copy link
Collaborator

There's a few places in pint-pandas where I've needed to check different types of quantity objects. I think these could be part of pint so other libraries could use them too.

I'm thinking functions like:

  • is_sequence_of_quantity([Q_(1),Q_(2)]) = True
  • is_quantity_scalar(Q_(1)) = True
  • is_quantity_array(Q_(np.array([1,2]))) = True
@andrewgsavage andrewgsavage linked a pull request Oct 26, 2023 that will close this issue
5 tasks
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 a pull request may close this issue.

1 participant