-
Notifications
You must be signed in to change notification settings - Fork 12
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
do not force_ndarray_like #234
base: main
Are you sure you want to change the base?
do not force_ndarray_like #234
Conversation
Thanks for opening this @burnpanck . I notice in
That seems odd in that it doesn't fully decouple the tests from the code, and also seems like it might be making this PR misleading by causing tests to pass in the CI that would not work in user code? |
Didn't spot that one. However, the tests still pass on my machine. To me, this suggests that |
As I pointed out in #216 (comment), it is possible to use After changing the unit registry of these tests to have |
I'll have to process that. I'm wondering why one should be using |
|
I would like to pick this up again. In our company, we have internal libraries that depend on Because of our experience with that and the precedent of |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we can add a test as in this comment?
# make sure scalars are converted to 0d arrays so quantities can | ||
# always be treated like ndarrays |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this comment should be modified as well?
for anyone interested in this, please check out the quantity API standardization efforts, which should allow for a cleaner separation between scalar quantities and array quantities. |
force_ndarray_like = True
#216pre-commit run --all-files
whats-new.rst