question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi, I have a rather newbie question.

Let’s say I have the following three files:

files = [
    "/remote_path/file1.root",
    "/remote_path/file2.root",
    "/remote_path/file3.root"
]

that I then feed to run_uproot_job in the following way:

fileset = {
    "Process": files
}

out = processor.run_uproot_job(
    fileset,
    treename="Events",
    processor_instance=MyProcessor(),
   ...
)

Assuming that I don’t know the exact number of files, is there a way to do something like the following?

fileset = {
    "Process": "/remote_path/file*.root"
}

Similar to what can be done e.g. in uproot.iterate.

Thanks,

Massimiliano

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
nsmith-commented, Jul 2, 2021

Someday we will have this feature, though! Probably when we make an fsspec-xrootd… which I’ve been saying for long enough that I should probably just go do it.

0reactions
andrzejnovakcommented, Jul 2, 2021

@kondratyevd oh that’s good to know, I’ve been using das usually to create my path jsons but it would be nice to have the flexibility of fetching stuff by folder rather then dataset name

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selectors in Apache Ant
A selector is an element of FileSet, and appears within it. It can also be defined outside of ... regex, The regular expression...
Read more >
regex - Apache ant character selector in filename copy task
I don't want to match the contents of the files, just the filenames, so containsregexp seems to be out. How do I do...
Read more >
[feature-request] Use regex or pattern for fileset entries · Issue #4
Hello, I just tested the truezip plugin and found it really interesting as it could solve an issue I have here perfectly.
Read more >
How to add several files to a fileset at once with a regular ...
A fileset is either a list of files, a file pattern, a base directory ... a base directory and a regexp matching files...
Read more >
Exclude or filter files using file type and regular expressions ...
A regular expression (regex) is a search pattern that locates files and folders containing a specific sequence of characters by comparing ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found