Regex in fileset
See original GitHub issueHi, 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:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@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