Removed subpackages: root-proof, root-proof-bench, root-proof-player,
root-proof-sessionviewer, root-sql-mysql, root-sql-odbc, root-sql-pgsql
New subpackages: root-geom-checker, root-gui-treemap,
root-tree-ntuple-browse, root-histv7
JsMVA python (sub)module dropped from python3-root package
Compile minuit2 with Open MP support
Dropped patches: 7
New patches: 4
32 lines
1.4 KiB
Diff
32 lines
1.4 KiB
Diff
From 40f8cd0adeb7257778c789e1ae639f260780402b Mon Sep 17 00:00:00 2001
|
|
From: Mattias Ellert <mattias.ellert@physics.uu.se>
|
|
Date: Sun, 7 Dec 2025 19:30:55 +0100
|
|
Subject: [PATCH] Fix a numpy test for 32 bit archs
|
|
|
|
The default dtype used in numpy array is "int". This type has
|
|
different sizes on 32 and 64 bit architectures. The test tries to use
|
|
the numpy array as a Long64_t dataframe. On 32 bit architectures this
|
|
results in an error.
|
|
|
|
This commit explicitly changes the numpy array's dtype to "int64" to
|
|
match the Long64_t dataframe type on all architectyres.
|
|
---
|
|
bindings/pyroot/pythonizations/test/rdataframe_misc.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/bindings/pyroot/pythonizations/test/rdataframe_misc.py b/bindings/pyroot/pythonizations/test/rdataframe_misc.py
|
|
index 1a1efd21b3e..150828613b3 100644
|
|
--- a/bindings/pyroot/pythonizations/test/rdataframe_misc.py
|
|
+++ b/bindings/pyroot/pythonizations/test/rdataframe_misc.py
|
|
@@ -132,7 +132,7 @@ class RDataFrameMisc(unittest.TestCase):
|
|
return
|
|
out_path = "dataframe_misc_regression_gh20291.root"
|
|
try:
|
|
- x, y = numpy.array([1, 2, 3]), numpy.array([4, 5, 6])
|
|
+ x, y = numpy.array([1, 2, 3], dtype='int64'), numpy.array([4, 5, 6], dtype='int64')
|
|
df = ROOT.RDF.FromNumpy({"x": x, "y": y})
|
|
|
|
df.Snapshot("tree", out_path)
|
|
--
|
|
2.52.0
|
|
|