diff --git a/herringbone_correction/batch_run_autofilet.py b/herringbone_correction/batch_run_autofilet.py index 3aad0ec..983f251 100644 --- a/herringbone_correction/batch_run_autofilet.py +++ b/herringbone_correction/batch_run_autofilet.py @@ -256,8 +256,8 @@ 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: - new_run_indx == 0 + if len(new_run_indices[0]) < 1: + new_run_indx = 0 else: new_run_indx = new_run_indices[0][-1]