cf.Domain.has

Domain.has(key)[source]

True if the domain has the given internal identifier.

Parameters :
key : str

An internal identifier.

Returns :
out : bool

Whether or not the domain has the internal identifier.

See also

get, ‘item`, items

Examples

>>> d.items().keys()
['dim0', 'aux0', 'aux1', 'trans0']
>>> d.has('dim0')
True
>>> d.has('aux2')
False

Previous topic

cf.Domain.get

Next topic

cf.Domain.insert_aux

This Page