Skip to content

Commit acc3908

Browse files
committed
z plane
1 parent 71ec138 commit acc3908

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

synapse_net/imod/to_imod.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,17 +209,16 @@ def _pad(inp, n=3):
209209
x = _pad(coord[2])
210210
y = _pad(shape[1] - coord[1])
211211
z = _pad(coord[0])
212+
212213
else:
213214
# (y, x) indexing, single z-plane
214215
x = _pad(coord[1])
215216
y = _pad(shape[0] - coord[0])
216-
z = _pad(1) # all points in z=0 plane
217-
217+
z=_pad(1)
218+
218219
f.write(f"{x}{y}{z}{_pad(radius, 2)}\n")
219-
if is_3d:
220-
cmd = [cmd, "-si", "-scat", fname, output_path]
221-
else:
222-
cmd = [cmd, "-sc", fname, output_path]
220+
cmd = [cmd, "-si", "-scat", fname, output_path]
221+
223222
if color is not None:
224223
assert len(color) == 3
225224
r, g, b = [str(co) for co in color]

0 commit comments

Comments
 (0)