Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Error if first file of the list does not contain the tree #60

Closed
gdujany opened this issue Feb 23, 2018 · 1 comment
Closed

Error if first file of the list does not contain the tree #60

gdujany opened this issue Feb 23, 2018 · 1 comment

Comments

@gdujany
Copy link

gdujany commented Feb 23, 2018

Sometimes one has many files that are supposed to contain the tree one is interested in but, due for example to a tight selection, some may not contain the tree. It is nice however to be able go blindly give the list of files without worrying which ones contain the tree and which ones do not.

If the file with the missing tree is not the first one that can be achieved in read_root by the option warn_missing_tree=True that is passed to root_numpy.root2array. Instead, if the first file miss the tree there is an error because of https://github.com/scikit-hep/root_pandas/blob/master/root_pandas/readwrite.py#L163 (seed_path = paths[0])

chrisburr added a commit that referenced this issue Jul 18, 2018
@chrisburr
Copy link
Member

Thanks for the report, it's fixed in version v0.3.5.

(Not deployed yet but should be on PyPI shortly.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants