rainbow.sniff_vendor

sniff_vendor(path)[source]

Identifies the vendor of a directory from its contents.

read() falls back to this when a directory’s name lacks the conventional vendor suffix (e.g. a Waters .raw folder renamed to Caffeine 3), so a caller deciding whether a folder is a run rainbow can read asks the same question read() will. The name is not consulted, so a .D folder holding nothing rainbow recognizes is None.

Parameters:

path (str) – Path of the directory.

Returns:

‘agilent’, ‘waters’, or None if no signature matches (or the path is not a directory).