Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Python] pathlib: Improve compatibility with python

オープン
#20,482 コメント 2 件 リアクション 1 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@vepadulano がすでに取り組んでいます。

2025年11月24日 から。

評価

この issue はまだ評価されていません。

説明

in:Python Interface new feature
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.

主要言語
C++
スター
3.3k
フォーク
1.6k
平均マージ
2日 17時間
マージ済み PR(30日)
188

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

root-project/root のほかの issue

root-project/root の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。