Skip to content

Conversation

@guitargeek
Copy link
Contributor

In order to merge the RooMomentMorphND and the RooMomentMorphFuncND, it is better to rename things first such that the code becomes comparable. Like this, it will be easier to spot the residual differences.

@phsft-bot
Copy link

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac12/noimt, mac11/cxx14, windows10/cxx14
How to customize builds

@phsft-bot
Copy link

Build failed on mac12/noimt.
Running on macphsft17.dyndns.cern.ch:/Users/sftnight/build/jenkins/workspace/root-pullrequests-build
See console output.

Warnings:

  • [2023-01-10T17:39:17.386Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/core/base/src/TDirectory.cxx:1245:7: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]

Failing tests:

And 63 more

In order to merge the `RooMomentMorphND` and the `RooMomentMorphFuncND`,
it is better to rename things first such that the code becomes
comparable. Like this, it will be easier to spot the residual
differences.
@phsft-bot
Copy link

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac12/noimt, mac11/cxx14, windows10/cxx14
How to customize builds

@phsft-bot
Copy link

Build failed on ROOT-ubuntu2004/python3.
Running on root-ubuntu-2004-3.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

Copy link
Member

@lmoneta lmoneta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why you need to rename the internal class Grid -> Grid2 ?
This might causes I/O problem in case the class is streamed.

Otherwise the PR looks fine to me

@guitargeek
Copy link
Contributor Author

guitargeek commented Jan 11, 2023

That's exactly the right observation! In fact the ClassDef and LinkDef entry for RooMomentMorphND::Grid is missing, so users could not do IO with it.

Therefore, we have the nice opportunity to make the RooMomentMorphND consistent with the RooMomentMorphFuncND (for which the Grid2 LinkDef entry exists) without breaking backwards compatibility. And if we see that these classes are just the same besides using a different base class, we can even remove RooMomentMorphND and tell users to use RooMomentMorphFuncND with the RooPdfWrapper adapter, like we do for many other classes.

@guitargeek guitargeek merged commit 81fdf30 into root-project:master Jan 11, 2023
@guitargeek guitargeek deleted the issue-11876 branch January 11, 2023 14:04
@lmoneta
Copy link
Member

lmoneta commented Jan 11, 2023

OK, thanks for the clarification!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants