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

Excessive Form usage in TMVA #13136

Closed
1 task done
linev opened this issue Jun 30, 2023 · 1 comment · Fixed by #13433
Closed
1 task done

Excessive Form usage in TMVA #13136

linev opened this issue Jun 30, 2023 · 1 comment · Fixed by #13433

Comments

@linev
Copy link
Member

linev commented Jun 30, 2023

Check duplicate issues.

  • Checked for duplicates

Description

There are many places where value of global buffer from Form stored in variable and used in several consequent calls.
Such behavior is undefined while global buffer may be changed by other calls.

Moreover, there are places (at least one) where two Form used in single call - definitely is not working.
See here:

https://github.com/root-project/root/blob/master/tmva/tmva/src/MethodTMlpANN.cxx#L456

      dummyTree->Branch(Form("%s",vn.Data()), d+ivar, Form("%s/D",vn.Data()));

One should use TString::Format() instead.

Reproducer

ROOT version

master

Installation method

build from source

Operating system

OpenSUSE Linux

Additional context

No response

@github-actions
Copy link

Hi @linev, @lmoneta,

It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise.

Sincerely,
🤖

@linev linev added this to Issues in Fixed in 6.30/00 via automation Aug 15, 2023
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