aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-03-05 16:56:44 +0100
committerThomas White <taw@physics.org>2020-03-05 16:56:44 +0100
commit118835f8b3fc5ded5c4d6958678db54365f45d2f (patch)
tree58aba0b91be5ca36168348584c688b6eb4b6b8f8
parent20c51dc950d22659603e1b133aa172414d4fcfec (diff)
transfer-geom: Only write coffset for panels which have them
-rwxr-xr-xscripts/transfer-geom3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/transfer-geom b/scripts/transfer-geom
index 6109f5ed..e4f38bb4 100755
--- a/scripts/transfer-geom
+++ b/scripts/transfer-geom
@@ -83,7 +83,8 @@ with open(sys.argv[2]) as template:
if not panel:
print("No panel for line: %s\n" % line)
sys.exit(1)
- out.write("%s/coffset = %s\n" % (panel, coffset[panel]))
+ if panel in coffset:
+ out.write("%s/coffset = %s\n" % (panel, coffset[panel]))
else:
out.write("%s\n" % line)