Skip to content

feat: support writing ListArrays to RNTuples#1416

Merged
ariostas merged 1 commit intomainfrom
ariostas/rntuple_write_listarrays
Apr 11, 2025
Merged

feat: support writing ListArrays to RNTuples#1416
ariostas merged 1 commit intomainfrom
ariostas/rntuple_write_listarrays

Conversation

@ariostas
Copy link
Copy Markdown
Member

@ariostas ariostas commented Apr 9, 2025

This PR adds support for writing ListArrays to RNTuples. RNTuples have an analogue for this, so they are converted to ListOffsetArrays before writing them.

There are still some array types that can't be written, but each of them requires special handling since again there are no analogues in RNTuple. I'll continue to add them over time.

@ariostas ariostas requested a review from ianna April 10, 2025 11:11
Copy link
Copy Markdown
Member

@ianna ianna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ariostas - It is a correct way to convert ListArray to ListOffsetArray, though it may not be the most efficient. I'll leave it up to you to decide if you want to leave it as is since it is the internal code, and you may want to optimize it later.

@ariostas ariostas merged commit 4bd1a6a into main Apr 11, 2025
26 checks passed
@ariostas ariostas deleted the ariostas/rntuple_write_listarrays branch April 11, 2025 14:53
@scikit-hep scikit-hep deleted a comment from ikrommyd Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants