Title: Either handle or disallow setting axes via Array.__setattr__ · Issue #1200 · larray-project/larray · GitHub
Open Graph Title: Either handle or disallow setting axes via Array.__setattr__ · Issue #1200 · larray-project/larray
X Title: Either handle or disallow setting axes via Array.__setattr__ · Issue #1200 · larray-project/larray
Description: It can be natural to change an axis using __setattr__ (as gb tried to do) but it leads to a very confusing problem where the real array axis is different from the attribute axis. For example, to change the type of an axis: >>> arr = ndte...
Open Graph Description: It can be natural to change an axis using __setattr__ (as gb tried to do) but it leads to a very confusing problem where the real array axis is different from the attribute axis. For example, to ch...
X Description: It can be natural to change an axis using __setattr__ (as gb tried to do) but it leads to a very confusing problem where the real array axis is different from the attribute axis. For example, to ch...
Opengraph URL: https://github.com/larray-project/larray/issues/1200
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Either handle or disallow setting axes via Array.__setattr__","articleBody":"It can be natural to change an axis using `__setattr__` (as gb tried to do) but it leads to a very confusing problem where the real array axis is different from the attribute axis. For example, to change the type of an axis:\n\n```python\n>>> arr = ndtest('a=1,2,total')[:'2']\n>>> arr.a.dtype\ndtype('\u003cU21')\n>>> arr.a = arr.a.astype(int)\n>>> arr.a.dtype\ndtype('int64')\n>>> arr.axes['a'].dtype\ndtype('\u003cU21')\n>>> arr.a is arr.axes['a']\nFalse\n```\nWe should either make it work or make it an explicit error.","author":{"url":"https://github.com/gdementen","@type":"Person","name":"gdementen"},"datePublished":"2026-06-17T08:28:31Z","url":"https://github.com/larray-project/larray/issues/1200"}
| 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:900b2345-e013-29ab-f631-ad36f894727b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 92AC:194E10:1F2F165:2A514E3:6B00166D |
| html-safe-nonce | e051646194704aa65fd9deaad10b2d148c05d0d4d67c12d4fd2516620700be32 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkFDOjE5NEUxMDoxRjJGMTY1OjJBNTE0RTM6NkIwMDE2NkQiLCJ2aXNpdG9yX2lkIjoiMTI3MTY4NzUyMTU5NTYxMzI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 902a27b31cff25c909049b78bb284543339c433e48e9466f08c4f8afb73c4f26 |
| hovercard-subject-tag | issue:4681486483 |
| 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/1200/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f51ed722b81a3cffefbca64429158fd5b70438069ba29a11357c85eeb4ca7826/larray-project/larray/issues/1200 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f51ed722b81a3cffefbca64429158fd5b70438069ba29a11357c85eeb4ca7826/larray-project/larray/issues/1200 |
| og:image:alt | It can be natural to change an axis using __setattr__ (as gb tried to do) but it leads to a very confusing problem where the real array axis is different from the attribute axis. For example, to ch... |
| 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 | a2dd2291b1b13cc9c06f27ec92fa3dbaf34116fc24c9347b8539db61884c59f4 |
| 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 | 70121d4e855ee0bb7b75cf15d061d91f8863c0f8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width