'Given a list of spot records, return an object representing the coordinates of that symbol within the atlas'

def getSymbolCoords(self, opts):

    sourceRect = np.empty(len(opts), dtype=object)
    keyi = None
    sourceRecti = None
    for (i, rec) in enumerate(opts):
        key = (rec[3], rec[2], id(rec[4]), id(rec[5]))
        if (key == keyi):
            sourceRect[i] = sourceRecti
        else:
            try:
                sourceRect[i] = self.symbolMap[key]
            except KeyError:
                newRectSrc = QtCore.QRectF()
                newRectSrc.pen = rec['pen']
                newRectSrc.brush = rec['brush']
                self.symbolMap[key] = newRectSrc
                self.atlasValid = False
                sourceRect[i] = newRectSrc
                keyi = key
                sourceRecti = newRectSrc
    return sourceRect
