diff options
-rwxr-xr-x | scripts/detector-shift | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/detector-shift b/scripts/detector-shift index 440bd962..74106179 100755 --- a/scripts/detector-shift +++ b/scripts/detector-shift @@ -17,7 +17,11 @@ import re import numpy as np import matplotlib.pyplot as plt -f = open(sys.argv[1], 'r') +if sys.argv[1] == "-": + f = sys.stdin +else: + f = open(sys.argv[1], 'r') + if len(sys.argv) > 2: geom = sys.argv[2] have_geom = 1 |