From 0766cd61236b9dd1f480f04f7733b30a338761b0 Mon Sep 17 00:00:00 2001 From: chuan-wang Date: Tue, 24 Sep 2024 13:37:26 +0200 Subject: [PATCH] Fix bug with data type in frag_an_driver_gen --- VERSIONLOG.md | 4 ++++ scripts/frag_an_driver_gen.py | 11 ++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/VERSIONLOG.md b/VERSIONLOG.md index 1dbf7bfa..ea1d4e91 100644 --- a/VERSIONLOG.md +++ b/VERSIONLOG.md @@ -1,5 +1,9 @@ # Scilifelab_epps Version Log +## 20240924.1 + +Fix bug with data type in frag_an_driver_gen + ## 20240920.1 New EPP for parsing VC100 CSV file diff --git a/scripts/frag_an_driver_gen.py b/scripts/frag_an_driver_gen.py index c5a7e844..cfb52042 100644 --- a/scripts/frag_an_driver_gen.py +++ b/scripts/frag_an_driver_gen.py @@ -18,11 +18,12 @@ def main(lims, args): for output in currentStep.all_outputs(): if output.name == "Driver File": driver_file_out = output - elif output.output_type == "ResultFile": - location_ar = output.location[1].split(":") - valid_cols.add(location_ar[0]) - # idx = (ord(location_ar[0])-65)*12 + int(location_ar[1])-1 - ar_driver[output.location[1].replace(":", "")] = output.samples[0].name + else: + if output.location[1]: + location_ar = output.location[1].split(":") + valid_cols.add(location_ar[0]) + # idx = (ord(location_ar[0])-65)*12 + int(location_ar[1])-1 + ar_driver[output.location[1].replace(":", "")] = output.samples[0].name col_idx = -1 for column in sorted(list(valid_cols)):