aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/ave-resolution6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/ave-resolution b/scripts/ave-resolution
index 69c21195..370b3889 100755
--- a/scripts/ave-resolution
+++ b/scripts/ave-resolution
@@ -14,7 +14,11 @@ import sys
import numpy
import matplotlib.pyplot as plt
-f = open(sys.argv[1])
+if sys.argv[1] == '-':
+ f = sys.stdin
+else:
+ f = open(sys.argv[1])
+
a = []
while True: