aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-06-29 12:49:39 +0200
committerThomas White <taw@physics.org>2018-06-29 12:49:39 +0200
commit4fb276ffc2058eb68dc8dff3526098450c30fd55 (patch)
tree5ba62b75eb780041be8feda8e3289a2a4104a3b7 /scripts
parentb6e51bc50ca53d23527a571c474507f7095689f1 (diff)
Add scripts/extract-geom
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/extract-geom13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/extract-geom b/scripts/extract-geom
new file mode 100755
index 00000000..13f7ac2e
--- /dev/null
+++ b/scripts/extract-geom
@@ -0,0 +1,13 @@
+#!/usr/bin/env python
+
+import sys
+
+with open(sys.argv[1]) as f:
+ s = ""
+ while "Begin geometry file" not in s:
+ s = f.readline()
+ s = f.readline()
+ while "End geometry file" not in s:
+ print(s),
+ s = f.readline()
+