We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
>>> arr = ndrange('a=a0..a2;b=0..9') >>> arr a\b | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 a0 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 a1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 a2 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 >>> arr[arr.b < 5] a\b | 0 | 1 | 2 | 3 | 4 a0 | 0 | 1 | 2 | 3 | 4 a1 | 10 | 11 | 12 | 13 | 14 a2 | 20 | 21 | 22 | 23 | 24 >>> arr['a1', arr.b < 5] ValueError Traceback (most recent call last) ... ValueError: b | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | True | True | True | True | True | False | False | False | False | False is ambiguous (valid in a, b) >>> arr['a1', x.b < 5] AssertionError Traceback (most recent call last) ... AssertionError: <larray.core.BinaryOp object at 0x000001519BB97160> (<class 'larray.core.BinaryOp'>) is not scalar >>> # but this works >>> arr['a1'][arr.b < 5] b | 0 | 1 | 2 | 3 | 4 | 10 | 11 | 12 | 13 | 14 >>> arr['a1'][x.b < 5] b | 0 | 1 | 2 | 3 | 4 | 10 | 11 | 12 | 13 | 14
The text was updated successfully, but these errors were encountered:
fixed larray-project#246 : LArray.getitem accepts mix of boolean and …
4e138ca
…non-boolean filters
b16ee87
f9b3286
018e5d5
fixed #246 : LArray.getitem accepts mix of boolean and non-boolean fi…
618cf94
…lters
No branches or pull requests
The text was updated successfully, but these errors were encountered: