Access symbolic linked .root files with uproot #667
Replies: 2 comments 2 replies
-
If it's a filesystem symbolic link, then you can just use the link file itself:
>>> import uproot
>>> with uproot.open("root_file.root") as file:
... That is to say, let the filesystem do its thing with symbolic links. (Uproot isn't handling that; when Python asks for a file at But if you need to bring |
Beta Was this translation helpful? Give feedback.
-
Hi Jim, Many thanks for your quick reply.
Actually, I can identify the target of it using Kind regards, Roy |
Beta Was this translation helpful? Give feedback.
-
Dear
uproot
community,Is there a way to open a
.root
file withuproot
in cases where the file is symbolically-linked to its actual location ("target") on another sever/location?In standard
ROOT
for example, there is an option of usingTDavixFile
, e.g.(in shell)
ls -l root_file.root
to obtain the symbolic link target, and then in (py)ROOT
(
TDavixFile
is used in such cases instead ofTFile
)This works fine with
ROOT
. I've not found a parallel option inuproot
, but perhaps the option exists somewhere/how...?Any help or suggestion would be warmly welcomed.
Many thanks in advance,
Roy
Beta Was this translation helpful? Give feedback.
All reactions