def timepoints(request): timepoints = list() for i, center in enumerate(centers, start=1): timepoints.append( Colony.Timepoint(timestamp=timedelta(seconds=i), area=i, center=center, diameter=i * 1.0, perimeter=i * 1.0, color_average=(0, 0, 0))) yield timepoints
def timepoints(request): timepoints = list() date_time = datetime.now() for i, center in enumerate(centers, start=1): timepoints.append( Colony.Timepoint(date_time=date_time + timedelta(seconds=i), elapsed_minutes=i, area=i, center=center, diameter=i * 1.0, perimeter=i * 1.0)) yield timepoints
def timepoint_empty(self): yield Colony.Timepoint(timedelta.min, 0, (0, 0), 0, 0, (0, 0, 0))
def timepoint_empty(self): yield Colony.Timepoint(datetime.now(), 0, 0, (0, 0), 0, 0)