aboutsummaryrefslogtreecommitdiff
path: root/scripts/peakogram-stream
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/peakogram-stream')
-rwxr-xr-xscripts/peakogram-stream7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/peakogram-stream b/scripts/peakogram-stream
index a17670ce..22ce4680 100755
--- a/scripts/peakogram-stream
+++ b/scripts/peakogram-stream
@@ -79,7 +79,12 @@ n=0
in_list = 0
cell = []
-with open(args.i) as f:
+if args.i == "-":
+ f = sys.stdin
+else:
+ f = open(args.i)
+
+if f:
for line in f:
if line.find("Cell parameters") != -1: