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

RDF Progress bar seems to ignore Range() calls #15323

Open
1 task done
TomasDado opened this issue Apr 24, 2024 · 0 comments
Open
1 task done

RDF Progress bar seems to ignore Range() calls #15323

TomasDado opened this issue Apr 24, 2024 · 0 comments
Assignees

Comments

@TomasDado
Copy link

Check duplicate issues.

  • Checked for duplicates

Description

When Range() is called on a RDF object with a progress bar, the progress bar seems to show all the events instead of reducing the events to the values provided in the Range() call.

Reproducer

void test() {

  ROOT::RDataFrame df(100);
  ROOT::RDF::Experimental::AddProgressBar(df);
  auto def = df.Define("x", [](){ return gRandom->Rndm(); });
  auto max = def.Range(0, 10);
  auto hist = max.Histo1D("x");
  std::cout << hist->Integral() << "\n";
}

The following code shows:

root [0] 
Processing test.cxx...
[Total elapsed time: 0:00m  processed files: 0 / 0  processed evts: 100 / 100]                                                                                                                      
10

While the progress bar should ideally show 10/10

ROOT version

Recent master branch

Installation method

git clone + local compilation

Operating system

Ubuntu 23.10

Additional context

No response

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

No branches or pull requests

2 participants