Title: mixing boolean filters with other filters is broken · Issue #246 · larray-project/larray · GitHub
Open Graph Title: mixing boolean filters with other filters is broken · Issue #246 · larray-project/larray
X Title: mixing boolean filters with other filters is broken · Issue #246 · larray-project/larray
Description: >>> 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...
Open Graph Description: >>> 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...
X Description: >>> 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 |...
Opengraph URL: https://github.com/larray-project/larray/issues/246
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mixing boolean filters with other filters is broken","articleBody":"```python\r\n>>> arr = ndrange('a=a0..a2;b=0..9')\r\n>>> arr\r\na\\b | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9\r\n a0 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9\r\n a1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19\r\n a2 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29\r\n>>> arr[arr.b \u003c 5]\r\na\\b | 0 | 1 | 2 | 3 | 4\r\n a0 | 0 | 1 | 2 | 3 | 4\r\n a1 | 10 | 11 | 12 | 13 | 14\r\n a2 | 20 | 21 | 22 | 23 | 24\r\n>>> arr['a1', arr.b \u003c 5]\r\nValueError Traceback (most recent call last)\r\n...\r\nValueError: b | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9\r\n | True | True | True | True | True | False | False | False | False | False is ambiguous (valid in a, b)\r\n>>> arr['a1', x.b \u003c 5]\r\nAssertionError Traceback (most recent call last)\r\n...\r\nAssertionError: \u003clarray.core.BinaryOp object at 0x000001519BB97160> (\u003cclass 'larray.core.BinaryOp'>) is not scalar\r\n>>> # but this works\r\n>>> arr['a1'][arr.b \u003c 5]\r\nb | 0 | 1 | 2 | 3 | 4\r\n | 10 | 11 | 12 | 13 | 14\r\n>>> arr['a1'][x.b \u003c 5]\r\nb | 0 | 1 | 2 | 3 | 4\r\n | 10 | 11 | 12 | 13 | 14\r\n```","author":{"url":"https://github.com/gdementen","@type":"Person","name":"gdementen"},"datePublished":"2017-05-04T13:57:14Z","url":"https://github.com/larray-project/larray/issues/246"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4a6328e7-28b2-7062-e3dd-4d7509ee8f43 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A3DC:2573D7:219B470:2DCB0AE:6B00259C |
| html-safe-nonce | d6a76b7a13fe086434c4904c59b430bee94cbc0e8ecc54a81be934c8037ca086 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0RDOjI1NzNENzoyMTlCNDcwOjJEQ0IwQUU6NkIwMDI1OUMiLCJ2aXNpdG9yX2lkIjoiMzY5NTc3NjIyMTM1MTY1MDcxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 53e63e1bde4cb18129a784d5d9d19569d119f5ec3df1a291976725bbc938882d |
| hovercard-subject-tag | issue:226289433 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/larray-project/larray/246/issue_layout |
| twitter:image | https://opengraph.githubassets.com/98f268e90dbff10a2c1db365deb7620e97096726846be03908a80f27f01a5119/larray-project/larray/issues/246 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/98f268e90dbff10a2c1db365deb7620e97096726846be03908a80f27f01a5119/larray-project/larray/issues/246 |
| og:image:alt | >>> 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gdementen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| turbo-cache-control | no-preview |
| go-import | github.com/larray-project/larray git https://github.com/larray-project/larray.git |
| octolytics-dimension-user_id | 26460981 |
| octolytics-dimension-user_login | larray-project |
| octolytics-dimension-repository_id | 16981067 |
| octolytics-dimension-repository_nwo | larray-project/larray |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16981067 |
| octolytics-dimension-repository_network_root_nwo | larray-project/larray |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width