Skip to content

Commit 1c80085

Browse files
committed
pep8 fixes
1 parent 364de2d commit 1c80085

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

projects/parallelSDC/minimization.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def rho(x):
1515

1616
x0 = np.ones(M)
1717
d = opt.minimize(rho, x0, method='Nelder-Mead')
18-
1918
print(d)
19+
2020
numsteps = 800
2121
xdim = np.linspace(0, 8, numsteps)
2222
ydim = np.linspace(0, 13, numsteps)
@@ -52,9 +52,9 @@ def rho(x):
5252
plt.savefig(fname, rasterized=True, bbox_inches='tight')
5353

5454
plt.figure()
55-
xdim_part = xdim[int(0.25*numsteps):int(0.75*numsteps)+1]
56-
ydim_part = ydim[0:int(0.25*numsteps)]
57-
minfield_part = minfield[int(0.25*numsteps):int(0.75*numsteps)+1, 0:int(0.25*numsteps)]
55+
xdim_part = xdim[int(0.25 * numsteps):int(0.75 * numsteps) + 1]
56+
ydim_part = ydim[0:int(0.25 * numsteps)]
57+
minfield_part = minfield[int(0.25 * numsteps):int(0.75 * numsteps) + 1, 0:int(0.25 * numsteps)]
5858
plt.pcolor(xdim_part, ydim_part, minfield_part.T, cmap='Reds', vmin=0, vmax=1)
5959
plt.text(d.x[0], d.x[1], 'X', horizontalalignment='center', verticalalignment='center')
6060
plt.xlim((min(xdim_part), max(xdim_part)))

0 commit comments

Comments
 (0)