identify_gwf#

gwpy.io.gwf.identify_gwf(
origin: Literal['read', 'write'],
filepath: FileSystemPath | None,
fileobj: FileLike | None,
*args,
**kwargs,
) bool[source]#

Identify a filename or file object as GWF.

This function is overloaded in that it will also identify a cache file as ‘gwf’ if the first entry in the cache contains a GWF file extension