Enforcing list when specifying even single output component

这个提交包含在:
Craig Warren
2024-04-15 15:59:48 +01:00
父节点 324a66bcad
当前提交 9f4bb79f54
共有 3 个文件被更改,包括 5 次插入5 次删除

查看文件

@@ -871,7 +871,7 @@ class Rx(UserObjectMulti):
try:
r.ID = self.kwargs["id"]
outputs = list(self.kwargs["outputs"])
outputs = self.kwargs["outputs"]
except KeyError:
# If no ID or outputs are specified, use default
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"
)
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)
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"
)
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)
return scene_objects
@@ -804,7 +804,7 @@ def antenna_like_GSSI_400(x, y, z, resolution=0.002, **kwargs):
)
scene_objects.extend((w2, tl2))
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)
# Geometry views

查看文件

@@ -649,7 +649,7 @@ def antenna_like_MALA_1200(x, y, z, resolution=0.001, **kwargs):
scene_objects.append(vs1)
# 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)
# Geometry views