Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ntuple] RNTupleReader::Show() produces empty output if user does not impose a model #12031

Closed
1 task done
jalopezg-git opened this issue Jan 13, 2023 · 1 comment · Fixed by #12026
Closed
1 task done

Comments

@jalopezg-git
Copy link
Collaborator

  • Checked for duplicates

Describe the bug

Calling RNTupleReader::Show() on an instance where the model is generated from ntuple metadata on storage yields an empty JSON output.
However, as can be seen below, calling LoadEntry() triggers model generation from the ntuple descriptor and the following Show() call produces the expected output. This results in surprising behaviour.

root [] auto ntuple = ROOT::Experimental::RNTupleReader::Open(“ntuple”, “/tmp/out.ntuple”);
root [] ntuple->Show(0);
{}
root [] ntuple->LoadEntry(0);
root [] ntuple->Show(0);
{
  “i”: 42,
  “f”: 12.2313
}

Expected behavior

If LoadEntry() generates the model from the ntuple descriptor, most probably Show() should also do it.

@enirolf
Copy link
Contributor

enirolf commented Jan 16, 2023

Hi Javier, I opened a PR that addresses this issue: #12026!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants