aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-09-24 18:24:23 -0500
committertlatorre <tlatorre@uchicago.edu>2019-09-24 18:24:23 -0500
commite5873f41eedeb23911eee7f25edb6907474971a5 (patch)
treee243abe319b9f17a16c5688e6e015a9186b71913 /utils
parent77b629ef03eb3154b47999847276e72447d22282 (diff)
downloadsddm-e5873f41eedeb23911eee7f25edb6907474971a5.tar.gz
sddm-e5873f41eedeb23911eee7f25edb6907474971a5.tar.bz2
sddm-e5873f41eedeb23911eee7f25edb6907474971a5.zip
fix bugs introduced into zdab-reprocess in commit 1e35dea
Diffstat (limited to 'utils')
-rwxr-xr-xutils/zdab-reprocess6
1 files changed, 2 insertions, 4 deletions
diff --git a/utils/zdab-reprocess b/utils/zdab-reprocess
index 172e110..0df2274 100755
--- a/utils/zdab-reprocess
+++ b/utils/zdab-reprocess
@@ -352,7 +352,7 @@ if __name__ == '__main__':
parser.add_argument("--suffix", default="reprocessed", help="suffix appended to output filename")
args = parser.parse_args()
- filename_re = "(SNOCR_|SNO)(\d+)_(\w+).(x?zdab)"
+ filename_re = "(?:SNOCR_|SNO)(\d+)_\w+.x?zdab"
p = re.compile(filename_re)
@@ -366,10 +366,8 @@ if __name__ == '__main__':
print("Unable to parse filename '%s'" % tail)
sys.exit(1)
- prefix, run, tail, ext = match.groups()
-
try:
- run = int(run)
+ run = int(match.group(1))
except Exception as e:
print("Unable to convert run number to int: %s" % str(e))
sys.exit(1)