cf.Constructs.new_identifier

Constructs.new_identifier(construct_type)[source]

Return a new, unsed construct key.

New in version 1.7.0.

Parameters
construct_type: str

TODO

Returns
str

The new construct key.

Examples:

>>> c.keys()
['domainaxis0',
 'domainaxis1',
 'domainaxis2',
 'dimensioncoordinate2',
 'dimensioncoordinate0',
 'dimensioncoordinate1',
 'cellmethod0']
>>> c.new_identifier('domain_axis')
'domainaxis3'
>>> c.keys()
['domainaxis0',
 'domainaxis1',
 'domainaxis2',
 'dimensioncoordinate2',
 'dimensioncoordinate0',
 'dimensioncoordinate1',
 'cellmethod0']