BlobSet#

class lsst.verify.BlobSet(blobs=None)#

Bases: JsonSerializationMixin

A collection of Blobs.

Parameters#

blobslist of lsst.verify.Blobs

Blobs to include in the set.

Attributes Summary

json

A dict that can be serialized as JSON.

Methods Summary

deserialize([blobs])

Create a BlobSet from a parsed JSON dataset.

insert(blob)

Insert a blob into the set.

items()

Iterate over (identifier, Blob) pairs in the set.

keys()

Get a sequence of blob identifiers, which are keys to the BlobSet.

values()

Get a new view of the BlobSet's values.

Attributes Documentation

json#

A dict that can be serialized as JSON.

Methods Documentation

classmethod deserialize(blobs=None)#

Create a BlobSet from a parsed JSON dataset.

Parameters#

blobslist, optional

A list of blob JSON serializations.

Returns#

instanceBlobSet

A BlobSet instance.

insert(blob)#

Insert a blob into the set.

Parameters#

blobBlob

Blob to insert into the set. It can be accessed by key from the BlobSet through its Blob.identifier string.

items()#

Iterate over (identifier, Blob) pairs in the set.

Yields#

itemtuple

Tuple containing:

keys()#

Get a sequence of blob identifiers, which are keys to the BlobSet.

Returns#

keyssequence of str

Sequence of Blob.identifier.

values()#

Get a new view of the BlobSet’s values.

Returns#

blobiterable of lsst.verify.Blob

A collection of Blob objects that is updated when this object changes.