ctapipe.utils.datasets.find_all_matching_datasets(pattern, searchpath=None, regexp_group=None, url=None)[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)

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)


resources names, use get_dataset_path() to retrieve the full filename