Ejemplo n.º 1
0
	def update(self,ignored):
		self.value = []
		for idx in self.source[self.indices]:
			if self.cut.has_key('vars'):
				if all(passed(self.source,idx,cut) for cut in self.cut['vars']) : self.value.append(idx)
			else :
				if passed(self.source,idx,self.cut): self.value.append(idx)
Ejemplo n.º 2
0
	def update(self,ignored):
		self.value = {'A':[],'B':[],'C':[],'D':[]}
		for idx in self.source[self.indices]:
			pass0 = all([passed(self.source,idx,cut) for cut in self.cuts[0]['vars']])
			pass1 = all([passed(self.source,idx,cut) for cut in self.cuts[1]['vars']])
			if not pass0 and not pass1 : self.value['A'].append(idx)
			if pass0 and not pass1 :     self.value['B'].append(idx)
			if not pass0 and pass1 :     self.value['C'].append(idx)
			if pass0 and pass1 :         self.value['D'].append(idx)