def ext_gridloop_vec3(self, f): """As ext_gridloop_vec2, but callback to class method.""" a = zeros((self.xcoor.size, self.ycoor.size)) a = ext_gridloop.gridloop_vec2(a, f) return a
def ext_gridloop_vec2(self, f): """As ext_gridloop_vec1, but callback to func. w/grid arg.""" a = zeros((self.xcoor.size, self.ycoor.size)) a = ext_gridloop.gridloop_vec2(a, f, func1_extra_args=(self,)) return a
def ext_gridloop_vec2(self, f): """As ext_gridloop_vec1, but callback to func. w/grid arg.""" a = zeros((self.xcoor.size, self.ycoor.size)) a = ext_gridloop.gridloop_vec2(a, f, func1_extra_args=(self, )) return a