Skip to content

Conversation

@jmcarcell
Copy link
Member

BEGINRELEASENOTES

  • Make the python writers have the same behavior as the C++ writers to decide what to do when no collections are passed

ENDRELEASENOTES

If no collections are passed then let the C++ decide instead of passing all collections (which is what the C++ writers do). In practice, this only allows to write frames with no collections from python, currently not possible as collections will evaluate to false and all the collections from frame.getAvailableCollections will be passed.

If no collections are passed then let the C++ decide instead of
passing all collections (which is what the C++ writers do). In practice,
this only allows to write empty frames from python, currently not possible
as collections will evaluate to false and all the collections from
`frame.getAvailableCollections` will be passed.
@tmadlener tmadlener enabled auto-merge (squash) December 4, 2025 10:06
@m-fila
Copy link
Contributor

m-fila commented Dec 4, 2025

Should this have a test to check this behaviour?

Perhaps in longer future python reading and writing could be rewritten to use C++ (type-erased) readers/writers with less wrappers?

@tmadlener tmadlener disabled auto-merge December 4, 2025 10:20
@tmadlener
Copy link
Collaborator

Should this have a test to check this behaviour?

Yes, it should.

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.

3 participants