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

✨ feat(quantity): add a function is_any_quantity checking isinstance(x, AbstractQuantity) #354

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nstarman
Copy link
Contributor

@nstarman nstarman commented Dec 23, 2024

This is useful for jax.tree is_leaf filtering.

…x, AbstractQuantity)

This is useful for type checking, and also for jax.tree is_leaf filtering.
@nstarman nstarman added this to the v1.1.0 milestone Dec 23, 2024
Copy link

codecov bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.76%. Comparing base (edd3952) to head (225df5b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #354   +/-   ##
=======================================
  Coverage   97.76%   97.76%           
=======================================
  Files          44       44           
  Lines        1609     1611    +2     
  Branches      327      327           
=======================================
+ Hits         1573     1575    +2     
  Misses         29       29           
  Partials        7        7           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nstarman nstarman requested review from adrn and jnibauer December 23, 2024 21:55
@nstarman nstarman marked this pull request as ready for review December 23, 2024 21:55
@nstarman
Copy link
Contributor Author

@nstarman nstarman closed this Dec 29, 2024
@nstarman nstarman reopened this Dec 29, 2024
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