def add_sweeps(self, items): items_with_sweeps = [] for item in items: items_with_sweeps.append(item) if not item.is_blank(): items_with_sweeps.append(RunSample.create_sweep(self.run)) return items_with_sweeps