is_yanny

pydl.pydlutils.yanny.is_yanny(origin, path, fileobj, *args, **kwargs)[source]

Identifies Yanny files or objects.

This function is for use with register_identifier().

Parameters:

origin : str

‘read’ or ‘write’

path : str

Path to the file.

fileobj : file object

Open file object, if available.

Returns:

bool

True if the file or object is a Yanny file.