[Python] pathlib: Improve compatibility with python
Maintainer thường phản hồi trong vòng 1 ngày
@vepadulano đang làm issue này rồi.
Từ ngày 24/11/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Check duplicate issues.
- Checked for duplicates
Description
I see all over the place problems when I try to use ROOT with python. This time I see that there is no support for Path objects.
Reproducer
import ROOT
from pathlib import Path
import numpy as np
root_file = ROOT.TFile("example_data.root", "RECREATE")
tree = ROOT.TTree("myTree", "Example Tree")
x = np.zeros(1, dtype=float)
y = np.zeros(1, dtype=float)
z = np.zeros(1, dtype=float)
tree.Branch("x", x, "x/D")
tree.Branch("y", y, "y/D")
tree.Branch("z", z, "z/D")
for i in range(10):
x[0] = i
y[0] = i * 2 + np.random.normal(0, 1)
z[0] = x[0]**2 + y[0]
tree.Fill()
tree.Write()
root_file.Close()
file_path = Path("example_data.root")
df = ROOT.RDataFrame("myTree", file_path)
ROOT version
6.36.04
Installation method
mamba
Operating system
almalinux 9
Additional context
Any good out there uses Path, not strings when handling paths.
- Ngôn ngữ chính
- C++
- Star
- 3.3k
- Fork
- 1.6k
- Merge trung bình
- 2 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 179
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của root-project/root
-
thisroot.sh: wrong ROOTSYS in zsh when the shell's command line has a newlineCó thể đã có người làm @dpiparo đã nhận 6 ngày trước. Đang mởbug in:Build System
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
root-project/root#23746 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[tmva][sofie] Inputs of unsupported type (e.g. float16) give code that does not compile instead of an errorCó thể đã có người làm @lmoneta đã nhận 16 ngày trước. Đang mởAI-Assisted bug in:SOFIE
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
root-project/root#23655 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
TDataMember::GetOffset interfers to TDataMember::GetOffsetCintCó thể đã có người làm @pcanal đã nhận 3 ngày trước. Đang mởbug in:Core Libraries
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
root-project/root#23777 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`TChain::GetEntries` internal caching ineffective?Có thể đã có người làm @pcanal đã nhận 9 ngày trước. Đang mởimprovement in:TTree
root-project/root#23738 · 6 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[PyROOT] Segfault at exit deleting a branch with a Cling-generated collection destructor after cppyy instantiated a templateCó thể đã có người làm @guitargeek đã nhận 9 ngày trước. Đang mởbug in:Python Interface test wit cppjit
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
root-project/root#23728 · 9 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của root-project/root
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
bug code-review testing tooling
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
aristocratos/btop#1945 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
boykopovar/AnyPS5#11291 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
k2-fsa/sherpa-onnx#4100 ·
Maintainer thường phản hồi trong vòng 2 ngày