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
originstr

‘read’ or ‘write’

pathstr

Path to the file.

fileobjfile object

Open file object, if available.

Returns
bool

True if the file or object is a Yanny file.