# How to get PyROOT to recognize my TFile's TBranches?

**URL:** <https://root-forum.cern.ch/t/how-to-get-pyroot-to-recognize-my-tfiles-tbranches/35948>\
**Category:** Newbie\
**Created:** [September 9, 2019, 7:03pm UTC](https://root-forum.cern.ch/t/how-to-get-pyroot-to-recognize-my-tfiles-tbranches/35948 "2019-09-09T19:03:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![etejedor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://root-forum.cern.ch/u/etejedor)\
**Post date:** [September 12, 2019, 9:29am UTC](https://root-forum.cern.ch/t/how-to-get-pyroot-to-recognize-my-tfiles-tbranches/35948/2 "2019-09-12T09:29:51Z")

</div>

Dear @Hilary,

Please see my answer here:

> [@Obtain every nth value from a TBranch array in PyRoot](https://root-forum.cern.ch/t/obtain-every-nth-value-from-a-tbranch-array-in-pyroot/35946):
>
> ROOT Version: Not Provided Platform: Linux Compiler: Not Provided Hello, I am attempting to iterate over the values of one TBranch in a TTree that is located in a TDirectory under a TFile. I am fairly new to ROOT, though I have history with Python, so I thought it best to use PyROOT to complete the iteration. However, if anyone can help me get this to work in either PyROOT or ROOT, it would be very helpful. so far I have this: " myfile = ROOT.TFile("/home/hilary/root/compile/Research/GEN…

---

_[View the full topic](https://root-forum.cern.ch/t/how-to-get-pyroot-to-recognize-my-tfiles-tbranches/35948)._
