improving example script
@@ -2,11 +2,13 @@ import porespy as ps
import numpy as np
import matplotlib.pyplot as plt
-# im = ps.generators.overlapping_spheres(shape=[600, 600], radius=15, porosity=0.7)
-# im[:, 0] = False
-# im[:, -1] = False
+if 1:
+ im = ps.generators.overlapping_spheres(shape=[600, 600], radius=15, porosity=0.7)
+ im[:, 0] = False
+ im[:, -1] = False
# Generate tubes
+if 0:
im = np.ones([600, 10], dtype=bool)
im[:, 0] = False
im[:, -1] = False
