Title: make axis['multiple;groups'] work · Issue #151 · larray-project/larray · GitHub
Open Graph Title: make axis['multiple;groups'] work · Issue #151 · larray-project/larray
X Title: make axis['multiple;groups'] work · Issue #151 · larray-project/larray
Description: I am not sure we should keep axis['a_string'] being interpreted, but if we do the title should work. Salvaged from my comments in #145. However (and this is a bit silly that I did not make it work -- but to my defense, I did not expect y...
Open Graph Description: I am not sure we should keep axis['a_string'] being interpreted, but if we do the title should work. Salvaged from my comments in #145. However (and this is a bit silly that I did not make it work ...
X Description: I am not sure we should keep axis['a_string'] being interpreted, but if we do the title should work. Salvaged from my comments in #145. However (and this is a bit silly that I did not make ...
Opengraph URL: https://github.com/larray-project/larray/issues/151
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"make axis['multiple;groups'] work","articleBody":"I am not sure we should keep axis['a_string'] being interpreted, but if we do the title should work.\r\n\r\nSalvaged from my comments in #145.\r\n\r\n> However (and this is a bit silly that I did not make it work -- but to my defense, I did not expect you to merge that PR), what you used as an example is broken at this point, because the result is not a valid index in an array:\r\n\r\n```python\r\n>>> year = Axis('year', '2001..2010')\r\n>>> year['2001:2004;2008;2009']\r\nyear[slice(2001, 2004, None), [2008, 2009]]\r\n>>> arr = ndrange(year)\r\n>>> arr.sum(year['2001:2004;2008,2009'])\r\nTypeError Traceback (most recent call last)\r\n...\r\nTypeError: unhashable type: 'slice'\r\n>>> # this works though\r\n... arr.sum(tuple(year['2001:2004;2008,2009']))\r\nyear | 2001:2004 | 2008,2009\r\n | 6 | 15\r\n```\r\n","author":{"url":"https://github.com/gdementen","@type":"Person","name":"gdementen"},"datePublished":"2017-03-14T13:55:49Z","url":"https://github.com/larray-project/larray/issues/151"}
| 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:cd7d0217-5db5-bd09-1242-816eb63fe0c1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B03C:1A7566:271786:34C19E:6B00244F |
| html-safe-nonce | 83e2e9367f3d08329759eafc314d173a0d0504b6927cc04766e195cb3ffe4250 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDNDOjFBNzU2NjoyNzE3ODY6MzRDMTlFOjZCMDAyNDRGIiwidmlzaXRvcl9pZCI6Ijc5NDg5NDAyNDc0NDkwMzc1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ec5d76bd7445e197336c8933b8bf40e9c1f8e843cabf662a56554b8af58ee197 |
| hovercard-subject-tag | issue:214079566 |
| 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/151/issue_layout |
| twitter:image | https://opengraph.githubassets.com/994718b1b8337b2fab99c2b735f8418c6ab3261c896ec3bbf70584739b78385f/larray-project/larray/issues/151 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/994718b1b8337b2fab99c2b735f8418c6ab3261c896ec3bbf70584739b78385f/larray-project/larray/issues/151 |
| og:image:alt | I am not sure we should keep axis['a_string'] being interpreted, but if we do the title should work. Salvaged from my comments in #145. However (and this is a bit silly that I did not make it work ... |
| 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