Skip to content

Commit f3047db

Browse files
committed
Comment out all plots from generate-volume
1 parent 98f438b commit f3047db

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: tools/generate-volume.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
(poisson_mag + 6) * (np.arange(ramp_length) /
3131
poisson_mag) ** 0.5).astype(int)
3232
np.clip(v1, 0, None, v1)
33-
plt.plot(v1)
34-
plt.show(block=True)
33+
#plt.plot(v1)
34+
#plt.show(block=True)
3535

3636
volume_noise = np.random.normal(scale=0.05, size=(p, w, w))
3737
indices_pln = (horizon[np.newaxis, ...] +
@@ -40,16 +40,16 @@
4040
indices_col = np.arange(w)[np.newaxis, np.newaxis, :]
4141
index_vol = (indices_pln, indices_row, indices_col)
4242
volume_noise[index_vol] += v0[:, np.newaxis, np.newaxis]
43-
plt.imshow(volume_noise[:, 50, :])
44-
plt.show(block=True)
45-
plt.hist(volume_noise.ravel(), bins=256)
46-
plt.show(block=True)
43+
#plt.imshow(volume_noise[:, 50, :])
44+
#plt.show(block=True)
45+
#plt.hist(volume_noise.ravel(), bins=256)
46+
#plt.show(block=True)
4747

4848
volume_noise2 = np.random.poisson(2, size=(p, w, w)) - 2
4949
volume_noise2[index_vol] += v1[:, np.newaxis, np.newaxis]
5050
np.clip(volume_noise2, 0, None, volume_noise2)
51-
plt.imshow(volume_noise2[:, 50, :])
52-
plt.show(block=True)
51+
#plt.imshow(volume_noise2[:, 50, :])
52+
#plt.show(block=True)
5353

5454
MM = max(abs(M), abs(m))
5555
volume0 = volume_noise[MM:-MM, :, :]

0 commit comments

Comments
 (0)