René's URL Explorer Experiment


Title: implement Axis.chunks & LArray.chunks · Issue #505 · larray-project/larray · GitHub

Open Graph Title: implement Axis.chunks & LArray.chunks · Issue #505 · larray-project/larray

X Title: implement Axis.chunks & LArray.chunks · Issue #505 · larray-project/larray

Description: this would generalize/deprecate Axis.by Axis.split(chunks=10, length=None, step=None, before=None, after=None, indices=None) LArray.split(chunks=10, length=None, step=None, before=None, after=None, indices=None, axis=-1) >>> age = Axis("...

Open Graph Description: this would generalize/deprecate Axis.by Axis.split(chunks=10, length=None, step=None, before=None, after=None, indices=None) LArray.split(chunks=10, length=None, step=None, before=None, after=None,...

X Description: this would generalize/deprecate Axis.by Axis.split(chunks=10, length=None, step=None, before=None, after=None, indices=None) LArray.split(chunks=10, length=None, step=None, before=None, after=None,...

Opengraph URL: https://github.com/larray-project/larray/issues/505

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"implement Axis.chunks & LArray.chunks","articleBody":"this would generalize/deprecate Axis.by\r\n```python\r\nAxis.split(chunks=10, length=None, step=None, before=None, after=None, indices=None)\r\nLArray.split(chunks=10, length=None, step=None, before=None, after=None, indices=None, axis=-1)\r\n>>> age = Axis(\"0..99\", \"age\")\r\n>>> age.split(5)\r\n(age.i[0:20], age.i[20:40], age.i[40:60], age.i[60:80], age.i[80:100])\r\n>>> age.split(length=20)\r\n(age.i[0:20], age.i[20:40], age.i[40:60], age.i[60:80], age.i[80:100])\r\n>>> age.split(length=10, step=20)\r\n(age.i[0:10], age.i[20:30], age.i[40:50], age.i[60:70], age.i[80:90])\r\n>>> age.split(before=50)\r\n(age.i[0:50], age.i[50:100])\r\n>>> age.split(before=[10, 15, 20, 40])\r\n(age.i[0:10], age.i[10:15], age.i[15:20], age.i[20:40], age.i[40:100])\r\n>>> age.split(indices=50)\r\n(age.i[0:50], age.i[50:100])\r\n>>> age.split(indices=[10, 15, 20, 40])\r\n(age.i[0:10], age.i[10:15], age.i[15:20], age.i[20:40], age.i[40:100])\r\n\r\n>>> arr = ndrange(age) * 0.25\r\n>>> arr.split(10, axis='age')\r\n[age    0     1    2     3    4     5    6     7    8     9\r\n     0.0  0.25  0.5  0.75  1.0  1.25  1.5  1.75  2.0  2.25,\r\nage   10    11   12    13   14    15   16    17   18    19\r\n     2.5  2.75  3.0  3.25  3.5  3.75  4.0  4.25  4.5  4.75,\r\nage   20    21   22    23   24    25   26    27   28    29\r\n     5.0  5.25  5.5  5.75  6.0  6.25  6.5  6.75  7.0  7.25,\r\nage   30    31   32    33   34    35   36    37   38    39\r\n     7.5  7.75  8.0  8.25  8.5  8.75  9.0  9.25  9.5  9.75,\r\nage    40     41    42     43    44     45    46     47    48     49\r\n     10.0  10.25  10.5  10.75  11.0  11.25  11.5  11.75  12.0  12.25,\r\nage    50     51    52     53    54     55    56     57    58     59\r\n     12.5  12.75  13.0  13.25  13.5  13.75  14.0  14.25  14.5  14.75,\r\nage    60     61    62     63    64     65    66     67    68     69\r\n     15.0  15.25  15.5  15.75  16.0  16.25  16.5  16.75  17.0  17.25,\r\nage    70     71    72     73    74     75    76     77    78     79\r\n     17.5  17.75  18.0  18.25  18.5  18.75  19.0  19.25  19.5  19.75,\r\nage    80     81    82     83    84     85    86     87    88     89\r\n     20.0  20.25  20.5  20.75  21.0  21.25  21.5  21.75  22.0  22.25,\r\nage    90     91    92     93    94     95    96     97    98     99\r\n     22.5  22.75  23.0  23.25  23.5  23.75  24.0  24.25  24.5  24.75]\r\n>>> arr1d.split(10)\r\nidem\r\n```\r\nFWIW: https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.split.html\r\n","author":{"url":"https://github.com/gdementen","@type":"Person","name":"gdementen"},"datePublished":"2017-10-26T11:36:29Z","url":"https://github.com/larray-project/larray/issues/505"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0aa0c97f-6119-2dbc-d1d2-9c67d92fb530
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC136:15E5F9:1FE2CE9:2B59110:6B001E4C
html-safe-nonce9a34b32679c4a1e8b4228c50cb10c7edd5893179a6f267538ebe91e86c95bb19
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTM2OjE1RTVGOToxRkUyQ0U5OjJCNTkxMTA6NkIwMDFFNEMiLCJ2aXNpdG9yX2lkIjoiMTUyMDA0NTc4NDYyNjYzNDMxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac607ad1c8844bacba37aad8e921076553d60ba5915a55994ff8ba9860262e608a
hovercard-subject-tagissue:268726162
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/larray-project/larray/505/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3b8ac655cbae66f795ee9d7311ac155fd27635b11c20f9f791551c86cabbb3d2/larray-project/larray/issues/505
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3b8ac655cbae66f795ee9d7311ac155fd27635b11c20f9f791551c86cabbb3d2/larray-project/larray/issues/505
og:image:altthis would generalize/deprecate Axis.by Axis.split(chunks=10, length=None, step=None, before=None, after=None, indices=None) LArray.split(chunks=10, length=None, step=None, before=None, after=None,...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegdementen
hostnamegithub.com
expected-hostnamegithub.com
None4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0
turbo-cache-controlno-preview
go-importgithub.com/larray-project/larray git https://github.com/larray-project/larray.git
octolytics-dimension-user_id26460981
octolytics-dimension-user_loginlarray-project
octolytics-dimension-repository_id16981067
octolytics-dimension-repository_nwolarray-project/larray
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id16981067
octolytics-dimension-repository_network_root_nwolarray-project/larray
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release44c658b24abf00491fb7ae5f56d42c9f38cbeab2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/larray-project/larray/issues/505#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flarray-project%2Flarray%2Fissues%2F505
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flarray-project%2Flarray%2Fissues%2F505
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=larray-project%2Flarray
Reloadhttps://github.com/larray-project/larray/issues/505
Reloadhttps://github.com/larray-project/larray/issues/505
Reloadhttps://github.com/larray-project/larray/issues/505
larray-projecthttps://github.com/larray-project
larrayhttps://github.com/larray-project/larray
Codehttps://github.com/larray-project/larray
Issues279 (279)https://github.com/larray-project/larray/issues
Pull requests6 (6)https://github.com/larray-project/larray/pulls
Actionshttps://github.com/larray-project/larray/actions
Security and qualityhttps://github.com/larray-project/larray/security
Insightshttps://github.com/larray-project/larray/insights
https://github.com/larray-project/larray
New issuehttps://github.com/login?return_to=https://github.com/larray-project/larray/issues/505
New issuehttps://github.com/login?return_to=https://github.com/larray-project/larray/issues/505
implement Axis.chunks & LArray.chunkshttps://github.com/larray-project/larray/issues/505#top
enhancementhttps://github.com/larray-project/larray/issues?q=state%3Aopen%20label%3A%22enhancement%22
syntaxhttps://github.com/larray-project/larray/issues?q=state%3Aopen%20label%3A%22syntax%22
nice_to_havehttps://github.com/larray-project/larray/milestone/20
https://github.com/gdementen
gdementenhttps://github.com/gdementen
on Oct 26, 2017https://github.com/larray-project/larray/issues/505#issue-268726162
https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.split.htmlhttps://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.split.html
gdementenhttps://github.com/gdementen
difficulty: lowhttps://github.com/larray-project/larray/issues?q=state%3Aopen%20label%3A%22difficulty%3A%20low%22
enhancementhttps://github.com/larray-project/larray/issues?q=state%3Aopen%20label%3A%22enhancement%22
difficulty: lowhttps://github.com/larray-project/larray/issues?q=state%3Aopen%20label%3A%22difficulty%3A%20low%22
on Oct 26, 2017https://github.com/larray-project/larray/issues/505#event-1311761172
https://github.com/gdementen
gdementenhttps://github.com/gdementen
on Oct 27, 2017https://github.com/larray-project/larray/issues/505#issuecomment-339959725
https://github.com/alixdamman
alixdammanhttps://github.com/alixdamman
on Oct 27, 2017https://github.com/larray-project/larray/issues/505#issuecomment-339960615
https://github.com/gdementen
gdementenhttps://github.com/gdementen
on Oct 27, 2017https://github.com/larray-project/larray/issues/505#issuecomment-339960909
https://github.com/alixdamman
alixdammanhttps://github.com/alixdamman
on Oct 27, 2017https://github.com/larray-project/larray/issues/505#issuecomment-339961253
https://github.com/alixdamman
alixdammanhttps://github.com/alixdamman
on Oct 27, 2017https://github.com/larray-project/larray/issues/505#issuecomment-339961339
https://github.com/gdementen
gdementenhttps://github.com/gdementen
on Oct 27, 2017https://github.com/larray-project/larray/issues/505#issuecomment-339961835
https://github.com/alixdamman
alixdammanhttps://github.com/alixdamman
on Oct 27, 2017https://github.com/larray-project/larray/issues/505#issuecomment-339962244
https://github.com/alixdamman
alixdammanhttps://github.com/alixdamman
on Oct 27, 2017https://github.com/larray-project/larray/issues/505#issuecomment-339962808
https://github.com/gdementen
gdementenhttps://github.com/gdementen
on Oct 27, 2017https://github.com/larray-project/larray/issues/505#issuecomment-339966388
https://github.com/alixdamman
alixdammanhttps://github.com/alixdamman
on Oct 27, 2017https://github.com/larray-project/larray/issues/505#issuecomment-339969283
gdementenhttps://github.com/gdementen
on Nov 14, 2017https://github.com/larray-project/larray/issues/505#event-1341019486
alixdammanhttps://github.com/alixdamman
0.29https://github.com/larray-project/larray/milestone/14
on Dec 18, 2017https://github.com/larray-project/larray/issues/505#event-1391886102
alixdammanhttps://github.com/alixdamman
0.29https://github.com/larray-project/larray/milestone/14
0.30https://github.com/larray-project/larray/milestone/15
on Mar 16, 2018https://github.com/larray-project/larray/issues/505#event-1525737188
alixdammanhttps://github.com/alixdamman
0.30https://github.com/larray-project/larray/milestone/15
0.31https://github.com/larray-project/larray/milestone/18
on Jul 18, 2018https://github.com/larray-project/larray/issues/505#event-1739415529
gdementenhttps://github.com/gdementen
syntaxhttps://github.com/larray-project/larray/issues?q=state%3Aopen%20label%3A%22syntax%22
on Jul 17, 2019https://github.com/larray-project/larray/issues/505#event-2489317407
gdementenhttps://github.com/gdementen
0.31https://github.com/larray-project/larray/milestone/18
on Aug 1, 2019https://github.com/larray-project/larray/issues/505#event-2526113029
alixdammanhttps://github.com/alixdamman
nice_to_havehttps://github.com/larray-project/larray/milestone/20
on Oct 10, 2019https://github.com/larray-project/larray/issues/505#event-2701969981
Sign up for freehttps://github.com/signup?return_to=https://github.com/larray-project/larray/issues/505
Sign in to commenthttps://github.com/login?return_to=https://github.com/larray-project/larray/issues/505
enhancementhttps://github.com/larray-project/larray/issues?q=state%3Aopen%20label%3A%22enhancement%22
syntaxhttps://github.com/larray-project/larray/issues?q=state%3Aopen%20label%3A%22syntax%22
nice_to_haveNo due datehttps://github.com/larray-project/larray/milestone/20
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.