find_all_matching_datasets¶
-
ctapipe.utils.datasets.
find_all_matching_datasets
(pattern, searchpath=None, regexp_group=None, url='http://cccta-dataserver.in2p3.fr/data/ctapipe-extra/v0.3.3/')[source]¶ Returns a list of resource names (or substrings) matching the given pattern, searching first in searchpath (a colon-separated list of directories) and then in the ctapipe_resources module)
- Parameters
- pattern: str
regular expression to use for matching
- searchpath: str
colon-seprated list of directories in which to search, defaulting to CTAPIPE_SVC_PATH environment variable
- regexp_group: int
if not None, return the regular expression group indicated (assuming pattern has a group specifier in it)
- Returns
- list(str):
resources names, use get_dataset_path() to retrieve the full filename