find#

classmethod Cell.find(database, cell_type, name=None, cell_id=None)#

Find a cell in a database by either name or ID.

Parameters:
databaseDatabase

Database to search for the cell.

cell_typeCellType

Type of the cell.

namestr, optional

Name of the cell. The default is None, in which case a name is automatically assigned.

cell_idint, optional

ID of the cell. The default is None, in which case an ID is automatically assigned.

Returns:
Cell

Cell that was found, None otherwise.