def averageValues(self):
assert self.opts['<STR_LIT>'] and self.opts['<STR_LIT>'] == '<STR_LIT>'<EOL>filled = self.density > <NUM_LIT:1><EOL>v = self.values.copy()<EOL>v[filled] /= self.density[filled]<EOL>v[~filled] *= self.density[~filled]<EOL>return v<EOL>
return the averaged values in the grid