icecube.gcdserver.BlobDB module

class icecube.gcdserver.BlobDB.BlobDB(geoData, calData, statusData)

Bases: object

Interface to GeometryObject, CalibrationObject, and DetectorStatus object instances given an array of dictionaries for each collection of data. Essentially a wrapper on calls that could, potentially, be served directly from the database.

calibrationDocuments(objectType=None, deviceName=None)

Get a generator into calibration documents, optionally selecting only a specific type and/or only a specific device

deployedDevices()

Generator of ((stringId, positionId, pmtId), object) for each object in the geometry database with deployment data (at least string ID and position ID)

deployedNameMap(name)

Map device name –> object

geometryDocuments(objectType=None)

Get a generator into geometry documents, optionally selecting only a specific type

getDeploymentTuple(o)

Return (stringId, positionId, pmtId) for a given geometry object

mbidMap(mbid)

Map mbid –> device name

omKeyMap(stringID, positionID, pmtID=None)

Map omKey –> device name

statusDocuments(objectType=None)

Get a generator into detector status documents, optionally selecting only a specific type

tankMap(tankName)

Map a tank name to a (stringID, tankLabel) pair