def get_known_camera_names(cls): """ Returns a list of camera_ids that are registered in `ctapipe_resources`. These are all the camera-ids that can be instantiated by the `from_name` method Returns ------- list(str) """ pattern = "(.*)\.camgeom\.fits(\.gz)?" return find_all_matching_datasets(pattern, regexp_group=1)
def get_known_camera_names(cls): """ Returns a list of camera_ids that are registered in `ctapipe_resources`. These are all the camera-ids that can be instantiated by the `from_name` method Returns ------- list(str) """ pattern = r'(.*)\.camgeom\.fits(\.gz)?' return find_all_matching_datasets(pattern, regexp_group=1)
def get_known_camera_names(cls): """ Returns a list of camera names that are available currently on the system. Beware that the `from_name` method also tries to download camera descriptions from the data server, so this list might not be exhaustive. Returns ------- list(str) """ pattern = r"(.*)\.camgeom\.fits(\.gz)?" return find_all_matching_datasets(pattern, regexp_group=1)
def get_known_camera_names(cls, array_id='CTA'): """ Returns a list of camera_ids that are registered in `ctapipe_resources`. These are all the camera-ids that can be instantiated by the `from_name` method Parameters ---------- array_id: str which array to search (default CTA) Returns ------- list(str) """ pattern = "(.*)\.camgeom\.fits(\.gz)?" return find_all_matching_datasets(pattern, regexp_group=1)