Title: CheckedSession default dtype is confusing and annoying · Issue #1163 · larray-project/larray · GitHub
Open Graph Title: CheckedSession default dtype is confusing and annoying · Issue #1163 · larray-project/larray
X Title: CheckedSession default dtype is confusing and annoying · Issue #1163 · larray-project/larray
Description: >>> a = Axis('a=a0,a1') >>> class CS(CheckedSession): ... v: CheckedArray(a) >>> arr = ndtest(a) >>> arr.dtype dtype('int64') >>> cs = CS(v=arr) >>> cs.v.dtype dtype('float64') >>> cs.v = arr >>> cs.v.dtype dtype('float64') When the dtyp...
Open Graph Description: >>> a = Axis('a=a0,a1') >>> class CS(CheckedSession): ... v: CheckedArray(a) >>> arr = ndtest(a) >>> arr.dtype dtype('int64') >>> cs = CS(v=arr) >>> cs.v.dtype dtype('float64') >>> cs.v = arr >>> c...
X Description: >>> a = Axis('a=a0,a1') >>> class CS(CheckedSession): ... v: CheckedArray(a) >>> arr = ndtest(a) >>> arr.dtype dtype('int64') >>> cs = C...
Opengraph URL: https://github.com/larray-project/larray/issues/1163
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CheckedSession default dtype is confusing and annoying","articleBody":"```python\n>>> a = Axis('a=a0,a1')\n>>> class CS(CheckedSession):\n... v: CheckedArray(a)\n>>> arr = ndtest(a)\n>>> arr.dtype\ndtype('int64')\n>>> cs = CS(v=arr)\n>>> cs.v.dtype\ndtype('float64')\n>>> cs.v = arr\n>>> cs.v.dtype\ndtype('float64')\n```\n\nWhen the dtype is not specified, instead of (silently) coercing to float, it should accept any dtype. We asked to check for the axes, not the dtype.","author":{"url":"https://github.com/gdementen","@type":"Person","name":"gdementen"},"datePublished":"2026-02-25T11:34:25Z","url":"https://github.com/larray-project/larray/issues/1163"}
| 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:c823ef14-379e-fa60-d58e-308092a51753 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D6C6:30CC09:249DD46:318DAB9:6B002B45 |
| html-safe-nonce | e408ac9860309c50e83277728f1c2914cf95cd7890c1511c6434940e85ec7cd3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkM2OjMwQ0MwOToyNDlERDQ2OjMxOERBQjk6NkIwMDJCNDUiLCJ2aXNpdG9yX2lkIjoiMTI1MjI0MTE1NTIxOTg5NDQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fa0594a8f3a7d7ffd6438b971e30fbba4cdb3c274572fd0cb9b0000b06a23745 |
| hovercard-subject-tag | issue:3988924763 |
| 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/1163/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9a57db432e41013c27608655d95a389b5ced8ecc67b78488b217b28a2b0115d5/larray-project/larray/issues/1163 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9a57db432e41013c27608655d95a389b5ced8ecc67b78488b217b28a2b0115d5/larray-project/larray/issues/1163 |
| og:image:alt | >>> a = Axis('a=a0,a1') >>> class CS(CheckedSession): ... v: CheckedArray(a) >>> arr = ndtest(a) >>> arr.dtype dtype('int64') >>> cs = CS(v=arr) >>> cs.v.dtype dtype('float64') >>> cs.v = arr >>> c... |
| 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 | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width