From aa26c59db51bda4f740181afaa57ec800f6b4588 Mon Sep 17 00:00:00 2001 From: elhb Date: Wed, 12 Sep 2018 15:18:50 +0200 Subject: [PATCH] Fix for the new format of the spotdetector output spot-data-all where the additional column selected might be present --- scripts/adjust_matrix_coordinates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/adjust_matrix_coordinates.py b/scripts/adjust_matrix_coordinates.py index 34d0c6f..64cecc7 100644 --- a/scripts/adjust_matrix_coordinates.py +++ b/scripts/adjust_matrix_coordinates.py @@ -42,7 +42,7 @@ def main(counts_matrix, coordinates_file, update_coordinates, outfile, outformat with open(coordinates_file, "r") as filehandler: for line in filehandler.readlines(): tokens = line.split() - assert(len(tokens) == 6 or len(tokens) == 4) + assert(len(tokens) == 6 or len(tokens) == 4 or len(tokens) == 7) if tokens[0] != "x": old_x = int(tokens[0]) old_y = int(tokens[1])