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

Make sure changed labels are kept after a clone (fix ROOT-10580) #5041

Merged
merged 4 commits into from Feb 24, 2020
Merged

Make sure changed labels are kept after a clone (fix ROOT-10580) #5041

merged 4 commits into from Feb 24, 2020

Conversation

couet
Copy link
Member

@couet couet commented Feb 20, 2020

No description provided.

@couet couet requested a review from lmoneta as a code owner February 20, 2020 09:35
@couet couet self-assigned this Feb 20, 2020
@phsft-bot
Copy link
Collaborator

Starting build on ROOT-performance-centos7-multicore/default, ROOT-fedora27/noimt, ROOT-fedora29/python3, ROOT-fedora30/cxx14, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu18.04-i386/cxx14, mac1014/cxx17, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-fedora27/noimt.
See console output.

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 am not sure it is a good idea to reimplement TF1::Clone using TF1::Copy. In principle Clone should rely on the ROOT I/O and TF1 knows about this and for example in case of TF1 based on compile functor, which cannot be cloned, it uses a special treatment.
Maybe there is another way to fix the bug observed when calling DrawClonePad.

Also why adding a new public function SetHistogram(), is this really something we want ?

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-fedora30/cxx14.
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on mac1014/cxx17.
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-ubuntu18.04-i386/cxx14.
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-performance-centos7-multicore/default.
See console output.

@phsft-bot
Copy link
Collaborator

Starting build on ROOT-performance-centos7-multicore/default, ROOT-fedora27/noimt, ROOT-fedora29/python3, ROOT-fedora30/cxx14, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu18.04-i386/cxx14, mac1014/cxx17, windows10/cxx14
How to customize builds

@couet
Copy link
Member Author

couet commented Feb 20, 2020

@lmoneta I have push the new version. May be you can look at it. Thanks

@phsft-bot
Copy link
Collaborator

Starting build on ROOT-performance-centos7-multicore/default, ROOT-fedora27/noimt, ROOT-fedora29/python3, ROOT-fedora30/cxx14, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu18.04-i386/cxx14, mac1014/cxx17, windows10/cxx14
How to customize builds

remove spaces
@phsft-bot
Copy link
Collaborator

Starting build on ROOT-performance-centos7-multicore/default, ROOT-fedora27/noimt, ROOT-fedora29/python3, ROOT-fedora30/cxx14, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu18.04-i386/cxx14, mac1014/cxx17, windows10/cxx14
How to customize builds

TObject* TF1::Clone(const char*) const
{

TF1* obj = (TF1*) TNamed::Clone();
Copy link
Member

Choose a reason for hiding this comment

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

Should you pass the new name/argument to TNamed::Clone()

@couet couet merged commit 740d3dd into root-project:master Feb 24, 2020
@couet couet deleted the clone-changed-labels-fix branch February 24, 2020 09:33
rahulgrit pushed a commit to cburgard/root that referenced this pull request Mar 10, 2020
…t-project#5041)

* Make sure changed labels are kept after a clone (fix ROOT-10580)

* new version using TObject::Clone...

* Fix to avoid double delete of fHistogram

* Use TNamed::Clone
remove spaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants