identify_factory#

gwpy.io.registry.identify_factory(*extensions: str) IdentifyProtocol[source]#

Return an Astropy Unified I/O identify function for a set of extensions.

The returned function is designed for use in the unified I/O registry via the astropy.io.registry.register_identifier hook.

Parameters:
extensionsstr

one or more file extension strings

Returns:
identifiercallable

an identifier function that tests whether an incoming file path carries any of the given file extensions (using str.endswith)