Skip to content

Commit

Permalink
feat: add python kernel definition for awkward_sorting_ranges_length
Browse files Browse the repository at this point in the history
  • Loading branch information
ManasviGoyal committed Jan 31, 2024
1 parent 69e2a6e commit 9a73593
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kernel-specification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5917,5 +5917,9 @@ kernels:
- {name: parentslength, type: "int64_t", dir: in, role: default}
description: null
definition: |
Insert Python definition here
def awkward_sorting_ranges_length(tolength, parents, parentslength):
tolength[0] = 2
for i in range(1, parentslength):
if parents[i - 1] != parents[i]:
tolength[0] = tolength[0] + 1
automatic-tests: false

0 comments on commit 9a73593

Please sign in to comment.