def create_cell_tuple( cls, **kwargs, ) -> Tuple: iteration = 0 phagosome = np.empty(MAX_CONIDIA) phagosome.fill(-1) return CellData.create_cell_tuple(**kwargs) + ( iteration, phagosome, )
def create_cell_tuple( cls, **kwargs, ) -> Tuple: initializer = { 'phagosome': kwargs.get('phagosome', -1 * np.ones(MAX_CONIDIA, dtype=np.int64)), } # ensure that these come in the correct order return CellData.create_cell_tuple(**kwargs) + tuple([ initializer[key] for key, *_ in PhagocyteCellData.PHAGOCYTE_FIELDS ])
def create_cell_tuple( cls, *, status=Status.NONGRANULATING, granule_count=0, **kwargs, ) -> Tuple: iteration = 0 return CellData.create_cell_tuple(**kwargs) + ( status, iteration, granule_count, )
def create_cell_tuple( cls, *, iron_pool: float = 0, status: Status = Status.RESTING, **kwargs, ) -> np.record: iteration = 0 phagosome = np.empty(MAX_PHAGOSOME_LENGTH) phagosome.fill(-1) return CellData.create_cell_tuple(**kwargs) + ( status, iron_pool, iteration, phagosome, )
def create_cell_tuple(cls, **kwargs) -> Tuple: initializer = { 'iron_pool': kwargs.get('iron_pool', 0), 'state': kwargs.get('state', AfumigatusCellState.FREE), 'status': kwargs.get('status', AfumigatusCellStatus.RESTING_CONIDIA), 'is_root': kwargs.get('is_root', True), 'vec': kwargs.get('vec', random_sphere_point()), # dz, dy, dx 'activation_iteration': kwargs.get('activation_iteration', 0), 'growth_iteration': kwargs.get('growth_iteration', 0), 'boolean_network': kwargs.get('boolean_network', cls.initial_boolean_network()), 'bn_iteration': kwargs.get('bn_iteration', 0), 'next_branch': kwargs.get('next_branch', -1), 'next_septa': kwargs.get('next_septa', -1), 'previous_septa': kwargs.get('previous_septa', -1), } # ensure that these come in the correct order return CellData.create_cell_tuple(**kwargs) + tuple( [initializer[key] for key, *_ in AfumigatusCellData.AFUMIGATUS_FIELDS] )
def create_cell_tuple( cls, *, iron: float = 0, status: Status = Status.RESTING, form: Form = Form.CONIDIA, iteration=0, mobile=False, internalized=False, health=100, **kwargs, ) -> Tuple: return CellData.create_cell_tuple(**kwargs) + ( form, status, iteration, mobile, internalized, iron, health, )