Commit 111198f3 authored by Zhang Xin's avatar Zhang Xin
Browse files

pep8

parent f02054bf
Pipeline #7841 passed with stage
in 0 seconds
...@@ -150,10 +150,7 @@ class FlatLED(MockObject): ...@@ -150,10 +150,7 @@ class FlatLED(MockObject):
U = np.zeros([self.chip.npix_y, self.chip.npix_x], dtype=np.float32) U = np.zeros([self.chip.npix_y, self.chip.npix_x], dtype=np.float32)
for y_seg_i in np.arange(y_seg_len): for y_seg_i in np.arange(y_seg_len):
for x_seg_i in np.arange(x_seg_len): for x_seg_i in np.arange(x_seg_len):
U[y_seg_i*y_seg:(y_seg_i+1)*y_seg, x_seg_i*x_seg:(x_seg_i+1)*x_seg] = griddata(X_, Z_, ( U[y_seg_i*y_seg:(y_seg_i+1)*y_seg, x_seg_i*x_seg:(x_seg_i+1)*x_seg] = griddata(X_, Z_, (M[y_seg_i*y_seg:(y_seg_i+1)*y_seg, x_seg_i*x_seg:(x_seg_i+1)*x_seg], N[y_seg_i*y_seg:(y_seg_i+1)*y_seg, x_seg_i*x_seg:(x_seg_i+1)*x_seg]), method='linear')
M[y_seg_i*y_seg:(y_seg_i+1)*y_seg, x_seg_i*x_seg:(x_seg_i+1)*x_seg],
N[y_seg_i*y_seg:(y_seg_i+1)*y_seg, x_seg_i*x_seg:(x_seg_i+1)*x_seg]),
method='linear')
# U = griddata(X_, Z_, ( # U = griddata(X_, Z_, (
# M[0:self.chip.npix_y, 0:self.chip.npix_x], # M[0:self.chip.npix_y, 0:self.chip.npix_x],
# N[0:self.chip.npix_y, 0:self.chip.npix_x]), # N[0:self.chip.npix_y, 0:self.chip.npix_x]),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment