From 97042e4249d69c45202addffb36a8c7de5445251 Mon Sep 17 00:00:00 2001 From: sean-lockwood Date: Wed, 5 Feb 2014 16:26:33 -0500 Subject: [PATCH 1/2] Update batch_run_autofilet.py Fixed typo in logic when searching for "NEW RUN STARTS HERE". --- herringbone_correction/batch_run_autofilet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/herringbone_correction/batch_run_autofilet.py b/herringbone_correction/batch_run_autofilet.py index 3aad0ec..364f20f 100644 --- a/herringbone_correction/batch_run_autofilet.py +++ b/herringbone_correction/batch_run_autofilet.py @@ -257,7 +257,7 @@ def build_inventory(): indx = 0 new_run_indices = np.where(np.array(all_lines) == 'NEW RUN STARTS HERE\n') if len(new_run_indices) < 1: - new_run_indx == 0 + new_run_indx = 0 else: new_run_indx = new_run_indices[0][-1] From 7624ef3997fb667f067eba4b44b00e4068b4de34 Mon Sep 17 00:00:00 2001 From: sean-lockwood Date: Thu, 6 Feb 2014 10:51:23 -0500 Subject: [PATCH 2/2] Update batch_run_autofilet.py Fixed indexing error in np.where() statement when parsing autofilet.log for 'NEW RUN STARTS HERE'. --- herringbone_correction/batch_run_autofilet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/herringbone_correction/batch_run_autofilet.py b/herringbone_correction/batch_run_autofilet.py index 364f20f..983f251 100644 --- a/herringbone_correction/batch_run_autofilet.py +++ b/herringbone_correction/batch_run_autofilet.py @@ -256,7 +256,7 @@ def build_inventory(): new_image_flag = True indx = 0 new_run_indices = np.where(np.array(all_lines) == 'NEW RUN STARTS HERE\n') - if len(new_run_indices) < 1: + if len(new_run_indices[0]) < 1: new_run_indx = 0 else: new_run_indx = new_run_indices[0][-1]