Skip to content

Public access of files over https seems to be broken with xrootd #11

@matthewfeickert

Description

@matthewfeickert

In

https://github.com/iris-hep/uscms-idap-training/blob/437edaf5ef9cf961e047cadc16721d77d144e907/coffea/coffea-challenge-samplegame.ipynb

the following patch for people without access should have worked for @nsmith-'s example

prefix = 'https://xrootd-local.unl.edu:1094//store/user/AGC/samplegame/'
samples = [
    NanoEventsFactory.from_root(f"sample{i}.root").events()
    for i in range(6)
]

but is broken at the moment. The following hack around worked,

import os
_url = "https://xrootd-local.unl.edu:1094//store/user/AGC/samplegame"
[os.system(f"curl -sLO {_url}/sample{file_idx}.root") for file_idx in range(6)]

samples = [
    NanoEventsFactory.from_root(f"sample{i}.root").events()
    for i in range(6)
]

but this is not what should be done generally.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions