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.

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