Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README/ReleaseNotes/v644/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ The following people have contributed to this new version:

* `TClassEdit::ESTLType`, `TDictionary::ESTLType`, `TStreamerElement::ESTLType` were redundant enums and have been removed. Please use `ROOT::ESTLType` instead.
* The `ROOT.SetHeuristicMemoryPolicy` method has been removed. This was introduced in 6.40 as a temporary debugging tool to aid users in addressing the changes in memory ownership heuristics.
* A `RooArgSet` cannot be constructed with an implicit conversion from Python `set` anymore.
* A `RooArgSet` cannot be constructed with an implicit conversion from Python `set` anymore. The problem is that Python sets are unordered while RooArgSets are ordered, and this mismatch can lead to subtle problems later on. Prefer conversion from Python lists or tuples, which are ordered too.
* The `RooFit::BatchMode` command argument has been removed, use `RooFit::EvalBackend` instead.
* The `RooTrace` class was untested and is now removed. For memory debugging, please use general-purpose tools such as AddressSanitizer or Valgrind instead.

## Python Interface

Expand Down
6 changes: 3 additions & 3 deletions bindings/pyroot/pythonizations/test/roofit.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ def test_ignoring_out_of_range(self):
if is_in_range:
n_in_range = n_in_range + 1

dataset_numpy = ROOT.RooDataSet.from_numpy(data, {x, cat}, name="dataSetNumpy")
dataset_numpy = ROOT.RooDataSet.from_numpy(data, [x, cat], name="dataSetNumpy")

self.assertEqual(dataset_numpy.numEntries(), n_in_range)

Expand Down Expand Up @@ -699,12 +699,12 @@ def test_roodataset_link(self):

n_events = 1000

data = g.generate({x}, NumEvents=n_events)
data = g.generate([x], NumEvents=n_events)

sample = ROOT.RooCategory("cat", "cat")
sample.defineType("cat_0")

data_2 = ROOT.RooDataSet("data_2", "data_2", {x}, Index=sample, Link={"cat_0": data})
data_2 = ROOT.RooDataSet("data_2", "data_2", [x], Index=sample, Link={"cat_0": data})

self.assertEqual(data_2.numEntries(), n_events)

Expand Down
4 changes: 4 additions & 0 deletions bindings/pyroot/pythonizations/test/root_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
import ROOT

v = ROOT.__version__
self.assertTrue(type(v) == str)

Check failure on line 63 in bindings/pyroot/pythonizations/test/root_module.py

View workflow job for this annotation

GitHub Actions / ruff

ruff (E721)

bindings/pyroot/pythonizations/test/root_module.py:63:25: E721 Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks
# Fix for #14068: we take into account the different way of expressing the version
# number before and starting with 6.32.00
self.assertIn("/", v) if ROOT.gROOT.GetVersionInt() < 63200 else self.assertNotIn("/", v)
Expand Down Expand Up @@ -97,13 +97,13 @@
#

if root_module_has("RDF.Experimental.Distributed"):
import ROOT.RDF.Distributed

Check failure on line 100 in bindings/pyroot/pythonizations/test/root_module.py

View workflow job for this annotation

GitHub Actions / ruff

ruff (F401)

bindings/pyroot/pythonizations/test/root_module.py:100:20: F401 `ROOT.RDF.Distributed` imported but unused help: Remove unused import: `ROOT.RDF.Distributed`

if root_module_has("RNTuple"):
from ROOT import RNTuple

Check failure on line 103 in bindings/pyroot/pythonizations/test/root_module.py

View workflow job for this annotation

GitHub Actions / ruff

ruff (F401)

bindings/pyroot/pythonizations/test/root_module.py:103:30: F401 `ROOT.RNTuple` imported but unused help: Remove unused import: `ROOT.RNTuple`

if root_module_has("RooFit.Evaluator"):
from ROOT.RooFit import Evaluator

Check failure on line 106 in bindings/pyroot/pythonizations/test/root_module.py

View workflow job for this annotation

GitHub Actions / ruff

ruff (F401)

bindings/pyroot/pythonizations/test/root_module.py:106:37: F401 `ROOT.RooFit.Evaluator` imported but unused help: Remove unused import: `ROOT.RooFit.Evaluator`

def test_deprecated_features(self):
"""
Expand All @@ -129,6 +129,10 @@
if version >= (6, 43, 0) and hasattr(ROOT, "RooArgSet"):
# Verify that the implicit conversion from Python set to RooArgSet
# is gone
# Currently the test will pass i.e. the Pythonization raises TypeError, but not for the correct reason.
# It will print errors coming from trying all overloads of the RooDataSet constructor, while we would expect
# the TypeError coming from the _rooargset.py pythonization.
# TODO: investigate cause and fix.
x = ROOT.RooRealVar("x", "x", 1.0)
y = ROOT.RooRealVar("y", "y", -1.0)
with self.assertRaises(TypeError):
Expand Down
2 changes: 0 additions & 2 deletions roofit/roofitcore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ set(ROOFITCORE_HEADERS
RooTable.h
RooTemplateProxy.h
RooThresholdCategory.h
RooTrace.h
RooTreeDataStore.h
RooTruthModel.h
RooUniformBinning.h
Expand Down Expand Up @@ -445,7 +444,6 @@ ROOT_STANDARD_LIBRARY_PACKAGE(RooFitCore
src/RooTFormulaEvaluator.cxx
src/RooTObjWrap.cxx
src/RooThresholdCategory.cxx
src/RooTrace.cxx
src/RooTreeDataStore.cxx
src/RooTruthModel.cxx
src/RooUniformBinning.cxx
Expand Down
1 change: 0 additions & 1 deletion roofit/roofitcore/inc/LinkDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@
}\
}";
#pragma link C++ class RooTObjWrap+ ;
#pragma link C++ class RooTrace+ ;
#pragma link C++ class RooUniformBinning+ ;
#pragma link C++ class RooSimultaneous+ ;
#pragma link C++ class RooRealSumPdf+ ;
Expand Down
10 changes: 0 additions & 10 deletions roofit/roofitcore/inc/RooGlobalFunc.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,16 +242,6 @@ RooCmdArg Parallelize(int nWorkers) ;
RooCmdArg ModularL(bool flag=false) ;
RooCmdArg TimingAnalysis(bool timingAnalysis) ;

RooCmdArg BatchMode(std::string const &batchMode = "cpu")
R__DEPRECATED(6, 44, "Use EvalBackend() instead of BatchMode().");
// The const char * overload is necessary, otherwise the compiler will cast a
// C-Style string to a bool and choose the BatchMode(bool) overload if one
// calls for example BatchMode("off").
RooCmdArg BatchMode(const char *batchMode)
R__DEPRECATED(6, 44, "Use EvalBackend() instead of BatchMode().");
RooCmdArg BatchMode(bool batchModeOn)
R__DEPRECATED(6, 44, "Use EvalBackend() instead of BatchMode().");

RooCmdArg IntegrateBins(double precision);

// RooAbsPdf::fitTo arguments
Expand Down
90 changes: 0 additions & 90 deletions roofit/roofitcore/inc/RooTrace.h

This file was deleted.

Loading
Loading