你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
Enforcing list when specifying even single output component
这个提交包含在:
@@ -871,7 +871,7 @@ class Rx(UserObjectMulti):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
r.ID = self.kwargs["id"]
|
r.ID = self.kwargs["id"]
|
||||||
outputs = list(self.kwargs["outputs"])
|
outputs = self.kwargs["outputs"]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
# If no ID or outputs are specified, use default
|
# If no ID or outputs are specified, use default
|
||||||
r.ID = f"{r.__class__.__name__}({str(r.xcoord)},{str(r.ycoord)},{str(r.zcoord)})"
|
r.ID = f"{r.__class__.__name__}({str(r.xcoord)},{str(r.ycoord)},{str(r.zcoord)})"
|
||||||
|
@@ -405,7 +405,7 @@ def antenna_like_GSSI_1500(x, y, z, resolution=0.001, **kwargs):
|
|||||||
p1=(tx[0] - 0.059, tx[1], tx[2]), p2=(tx[0] - 0.059, tx[1] + dy, tx[2]), material_id="rxres"
|
p1=(tx[0] - 0.059, tx[1], tx[2]), p2=(tx[0] - 0.059, tx[1] + dy, tx[2]), material_id="rxres"
|
||||||
)
|
)
|
||||||
scene_objects.append(e1)
|
scene_objects.append(e1)
|
||||||
r1 = gprMax.Rx(p1=(tx[0] - 0.059, tx[1], tx[2]), id="rxbowtie", outputs="Ey")
|
r1 = gprMax.Rx(p1=(tx[0] - 0.059, tx[1], tx[2]), id="rxbowtie", outputs=["Ey"])
|
||||||
scene_objects.append(r1)
|
scene_objects.append(r1)
|
||||||
|
|
||||||
elif resolution == 0.002:
|
elif resolution == 0.002:
|
||||||
@@ -414,7 +414,7 @@ def antenna_like_GSSI_1500(x, y, z, resolution=0.001, **kwargs):
|
|||||||
p1=(tx[0] - 0.060, tx[1], tx[2]), p2=(tx[0] - 0.060, tx[1] + dy, tx[2]), material_id="rxres"
|
p1=(tx[0] - 0.060, tx[1], tx[2]), p2=(tx[0] - 0.060, tx[1] + dy, tx[2]), material_id="rxres"
|
||||||
)
|
)
|
||||||
scene_objects.append(e1)
|
scene_objects.append(e1)
|
||||||
r1 = gprMax.Rx(p1=(tx[0] - 0.060, tx[1], tx[2]), id="rxbowtie", outputs="Ey")
|
r1 = gprMax.Rx(p1=(tx[0] - 0.060, tx[1], tx[2]), id="rxbowtie", outputs=["Ey"])
|
||||||
scene_objects.append(r1)
|
scene_objects.append(r1)
|
||||||
|
|
||||||
return scene_objects
|
return scene_objects
|
||||||
@@ -804,7 +804,7 @@ def antenna_like_GSSI_400(x, y, z, resolution=0.002, **kwargs):
|
|||||||
)
|
)
|
||||||
scene_objects.extend((w2, tl2))
|
scene_objects.extend((w2, tl2))
|
||||||
else:
|
else:
|
||||||
r1 = gprMax.Rx(p1=(tx[0] + 0.162, tx[1], tx[2]), id="rxbowtie", outputs="Ey")
|
r1 = gprMax.Rx(p1=(tx[0] + 0.162, tx[1], tx[2]), id="rxbowtie", outputs=["Ey"])
|
||||||
scene_objects.append(r1)
|
scene_objects.append(r1)
|
||||||
|
|
||||||
# Geometry views
|
# Geometry views
|
||||||
|
@@ -649,7 +649,7 @@ def antenna_like_MALA_1200(x, y, z, resolution=0.001, **kwargs):
|
|||||||
scene_objects.append(vs1)
|
scene_objects.append(vs1)
|
||||||
|
|
||||||
# Output point - receiver bowtie
|
# Output point - receiver bowtie
|
||||||
r1 = gprMax.Rx(p1=(tx[0] + 0.076, tx[1], tx[2]), id="rxbowtie", outputs="Ey")
|
r1 = gprMax.Rx(p1=(tx[0] + 0.076, tx[1], tx[2]), id="rxbowtie", outputs=["Ey"])
|
||||||
scene_objects.append(r1)
|
scene_objects.append(r1)
|
||||||
|
|
||||||
# Geometry views
|
# Geometry views
|
||||||
|
在新工单中引用
屏蔽一个用户