def METHOD_NAME(name):
    """Gets a Photometer class by name.
    You can use either short names like 'pr650' or a long name like 'CRS
    ColorCAL'.
    Parameters
    ----------
    name : str
        The name of the device.
    Returns
    -------
    object
        Returns the photometer matching the passed in device name or `None` if
        we were unable to find it.
    """
    for photom in getAllPhotometers():
        # longName is used from the GUI and driverFor is for coders
        if name.lower() in photom.driverFor or name == photom.longName:
            return photom