Skip to content

Commit 71ec138

Browse files
committed
testing
1 parent 58d54c9 commit 71ec138

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

synapse_net/imod/to_imod.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,10 @@ def _pad(inp, n=3):
216216
z = _pad(1) # all points in z=0 plane
217217

218218
f.write(f"{x}{y}{z}{_pad(radius, 2)}\n")
219-
220-
cmd = [cmd, "-si", "-scat", fname, output_path]
219+
if is_3d:
220+
cmd = [cmd, "-si", "-scat", fname, output_path]
221+
else:
222+
cmd = [cmd, "-sc", fname, output_path]
221223
if color is not None:
222224
assert len(color) == 3
223225
r, g, b = [str(co) for co in color]

0 commit comments

Comments
 (0)