Problem with RDataFrame::Snapshot in python

Continuing the discussion from Problem with RDataFrame::Fill in python:

I think the same problem affects the Snapshot function when calling it in python. But in this case there is no easy workaround.


Please read tips for efficient and successful posting and posting code

ROOT Version: 6.20/04
Platform: linuxx8664gcc
Compiler: 9.3.0

@eguiraud, @etejedor Any comment?

Hi Simone,
can you provide a few lines of python that reproduce the issue? Snapshot can certainly be invoked from python, see e.g.


Hi Enrico,

sorry I was too quick in posting the problem. I missed from other examples I looked at that one should define the ColumnNames as a c++ vector. I was calling Snapshot like this:

rdf.Snapshot('tree', 'file.root', ['my_var'])

As it was suggested in the jira ticket opened follwing the mentioned forum post, and using such a list does not work. Using a previously defined ROOT.vector(‘string’) fixes the issue.

Thank you,


1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.