-
Notifications
You must be signed in to change notification settings - Fork 469
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
Assigning a NaN
to Quantity
does not work
#127
Labels
Comments
The behavior here is the same as the python-quantities package, and does work in my opinion.
is more cumbersome, but is also logical (to me). |
It is logical, but given that NaN is Not a Number, i would be fine if this works: q[0] = np.nan |
Agreed that should work. But the edge case of Inf should not work like that, since infinity does have units. |
agreed |
It should be q = [1.0, 2, 3, 4] * ureg.meter
q[0] = np.nan because
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assigning a
NaN
toQuantity
does not work:See #126
The text was updated successfully, but these errors were encountered: