你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 15:10:13 +08:00
fixing SyntaxError in input_cmd_funcs.py, the unpacking was unnecesary anyway
这个提交包含在:
@@ -142,7 +142,7 @@ def geometry_view(xs, ys, zs, xf, yf, zf, dx, dy, dz, filename, type='n'):
|
|||||||
s = Coordinate(xs, ys, zs)
|
s = Coordinate(xs, ys, zs)
|
||||||
f = Coordinate(xf, yf, zf)
|
f = Coordinate(xf, yf, zf)
|
||||||
d = Coordinate(dx, dy, dz)
|
d = Coordinate(dx, dy, dz)
|
||||||
command('geometry_view', *s, *f, *d, filename, type)
|
command('geometry_view', s, f, d, filename, type)
|
||||||
|
|
||||||
return s, f, d
|
return s, f, d
|
||||||
|
|
||||||
@@ -167,7 +167,7 @@ def snapshot(xs, ys, zs, xf, yf, zf, dx, dy, dz, time, filename):
|
|||||||
else:
|
else:
|
||||||
time = '{:d}'.format(int(time))
|
time = '{:d}'.format(int(time))
|
||||||
|
|
||||||
command('snapshot', *s, *f, *d, time, filename)
|
command('snapshot', s, f, d, time, filename)
|
||||||
|
|
||||||
return s, f, d
|
return s, f, d
|
||||||
|
|
||||||
@@ -183,7 +183,7 @@ def edge(xs, ys, zs, xf, yf, zf, material):
|
|||||||
"""
|
"""
|
||||||
s = Coordinate(xs, ys, zs)
|
s = Coordinate(xs, ys, zs)
|
||||||
f = Coordinate(xf, yf, zf)
|
f = Coordinate(xf, yf, zf)
|
||||||
command('edge', *s, *f, material)
|
command('edge', s, f, material)
|
||||||
|
|
||||||
return s, f
|
return s, f
|
||||||
|
|
||||||
@@ -199,7 +199,7 @@ def plate(xs, ys, zs, xf, yf, zf, material):
|
|||||||
"""
|
"""
|
||||||
s = Coordinate(xs, ys, zs)
|
s = Coordinate(xs, ys, zs)
|
||||||
f = Coordinate(xf, yf, zf)
|
f = Coordinate(xf, yf, zf)
|
||||||
command('plate', *s, *f, material)
|
command('plate', s, f, material)
|
||||||
|
|
||||||
return s, f
|
return s, f
|
||||||
|
|
||||||
@@ -217,7 +217,7 @@ def triangle(x1, y1, z1, x2, y2, z2, x3, y3, z3, thickness, material):
|
|||||||
v1 = Coordinate(x1, y1, z1)
|
v1 = Coordinate(x1, y1, z1)
|
||||||
v2 = Coordinate(x2, y2, z2)
|
v2 = Coordinate(x2, y2, z2)
|
||||||
v3 = Coordinate(x3, y3, z3)
|
v3 = Coordinate(x3, y3, z3)
|
||||||
command('triangle', *v1, *v2, *v3, thickness, material)
|
command('triangle', v1, v2, v3, thickness, material)
|
||||||
|
|
||||||
return v1, v2, v3
|
return v1, v2, v3
|
||||||
|
|
||||||
@@ -235,7 +235,7 @@ def box(xs, ys, zs, xf, yf, zf, material, averaging=''):
|
|||||||
"""
|
"""
|
||||||
s = Coordinate(xs, ys, zs)
|
s = Coordinate(xs, ys, zs)
|
||||||
f = Coordinate(xf, yf, zf)
|
f = Coordinate(xf, yf, zf)
|
||||||
command('box', *s, *f, material, averaging)
|
command('box', s, f, material, averaging)
|
||||||
|
|
||||||
return s, f
|
return s, f
|
||||||
|
|
||||||
@@ -253,7 +253,7 @@ def sphere(x, y, z, radius, material, averaging=''):
|
|||||||
c (tuple): namedtuple Coordinate for the center of the sphere
|
c (tuple): namedtuple Coordinate for the center of the sphere
|
||||||
"""
|
"""
|
||||||
c = Coordinate(x, y, z)
|
c = Coordinate(x, y, z)
|
||||||
command('sphere', *c, radius, material, averaging)
|
command('sphere', c, radius, material, averaging)
|
||||||
|
|
||||||
return c
|
return c
|
||||||
|
|
||||||
@@ -272,7 +272,7 @@ def cylinder(x1, y1, z1, x2, y2, z2, radius, material, averaging=''):
|
|||||||
"""
|
"""
|
||||||
c1 = Coordinate(x1, y1, z1)
|
c1 = Coordinate(x1, y1, z1)
|
||||||
c2 = Coordinate(x2, y2, z2)
|
c2 = Coordinate(x2, y2, z2)
|
||||||
command('cylinder', *c1, *c2, radius, material, averaging)
|
command('cylinder', c1, c2, radius, material, averaging)
|
||||||
|
|
||||||
return c1, c2
|
return c1, c2
|
||||||
|
|
||||||
|
在新工单中引用
屏蔽一个用户