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_identifierhook.- Parameters:
- extensions
str one or more file extension strings
- extensions
- Returns:
- identifier
callable an identifier function that tests whether an incoming file path carries any of the given file extensions (using
str.endswith)
- identifier