-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[hist] Implement conversion of RVariableBinAxis and RCategoricalAxis
#20984
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
base: master
Are you sure you want to change the base?
Conversation
Test Results 22 files 22 suites 3d 11h 5m 27s ⏱️ Results for commit b9c21dd. ♻️ This comment has been updated with latest results. |
For copying the bins, it is not important which axis type we are copying from, we only need the full index range.
The function will be extended for other axis types and then reused to convert multidimensional histograms.
a57550a to
b9c21dd
Compare
| namespace ROOT { | ||
| namespace Experimental { | ||
| namespace Hist { | ||
| namespace Internal { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ROOT::Experimental::[...] ?
| if (auto *regular = src.GetRegularAxis()) { | ||
| dst.Set(regular->GetNNormalBins(), regular->GetLow(), regular->GetHigh()); | ||
| } else { | ||
| throw std::logic_error("unimplemented axis type"); // GCOVR_EXCL_LINE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's hard to trigger this exception, but maybe the message could give more context.
No description provided.