def step(self,mcs): if(mcs<2): return if not (mcs %10): containerAccessor=self.ContactLocalFlexPlugin.getContactDataContainerAccessorPtr() clfdItr=CompuCell.clfdSetPyItr() for cell in self.cellList: container=containerAccessor.get(cell.extraAttribPtr) clfdItr.initialize(container.contactDataContainer) clfdItr.setToBegin() while not clfdItr.isEnd(): print "is End=",clfdItr.isEnd() neighborCell=clfdItr.getCurrentRef().neighborAddress if neighborCell: print "neighbor.id",neighborCell.id," contact energy=",clfdItr.getCurrentRef().J else: print "neighbor.id=0 contact energy=",clfdItr.getCurrentRef().J clfdItr.next()